mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-12 00:14:25 +00:00
Add comment on hasTzOffset()
This commit is contained in:
parent
d45f9e9b8e
commit
b2ae9f8b5d
1 changed files with 4 additions and 0 deletions
|
@ -1078,6 +1078,10 @@ static TimeZone* createTimeZone(const DateInfo& dateInfo, UErrorCode& errorCode)
|
|||
return tz;
|
||||
}
|
||||
|
||||
// Returns true iff `sourceStr` ends in an offset like +03:30 or -06:00
|
||||
// (This function is just used to determine whether to call tryPatterns()
|
||||
// or tryTimeZonePatterns(); tryTimeZonePatterns() checks fully that the
|
||||
// string matches the expected format)
|
||||
static bool hasTzOffset(const UnicodeString& sourceStr) {
|
||||
int32_t len = sourceStr.length();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue