The library documents itself · Internationalization
stzLocale
83 own methods · 1 forms written with extensions, listed under their method
the source: base/i18n/stzLocale.ring(opens in a new tab) · All classes · The area reference: Internationalization
Under each method, its extensions (Q CS XT Z ZZ IB W U): bold and ticked, it exists; struck, it does not. The extensions and what they mean
Examples: 11 come from the library's tests; 53 were composed from each method's signature and run for this page, on a fresh object, for example o1 = new stzLocale([ :Country = :south_africa ]). 19 methods have none yet. Examples run on 2026-10-03 12:54 inside the library at commit 0e72e2e2c.
Method
Explanation, as the source carries it
init
initno extension
LOCALE ABBREVIATION 10 examples runalso written: Content
o1 = new stzLocale("de-DE")
? o1.Abbreviation()
#--> de_DElibrary testno extensionValue
infono extension
bcp47Abbreviation
infono extension
composed example
o1 = new stzLocale([ :Country = :south_africa ]) ? o1.bcp47Abbreviation() #--> zu-ZAcomposed from the signature, run for this page
(no comment in the source: the name reads as a sentence) country number 3 examples runin the section country
? StzLocaleQ([ :Country = :Tunisia ]).CountryNumber() #--> 216library testno extension
CountryShortAbbreviation
(no comment in the source: the name reads as a sentence) country short abbreviationalso written: CountryAbbreviationin the section countryno extension
composed example
o1 = new stzLocale([ :Country = :south_africa ]) ? o1.CountryShortAbbreviation() #--> ZAcomposed from the signature, run for this page
CountryLongAbbreviation
(no comment in the source: the name reads as a sentence) country long abbreviationin the section countryno extension
composed example
o1 = new stzLocale([ :Country = :south_africa ]) ? o1.CountryLongAbbreviation() #--> ZAFcomposed from the signature, run for this page
(no comment in the source: the name reads as a sentence) country phone code 1 examples runin the section country
? StzLocaleQ("ar_eg").CountryPhoneCode()
? StzLocaleQ([ :Country = :Niger ]).CountryPhoneCode()
? StzLocaleQ(:Niger).CountryPhoneCode()
#--> +20
#--> +227
#--> +227library testno extension(no comment in the source: the name reads as a sentence) country name 9 examples runalso written: Country · CountryNativeNamein the section country
? StzLocaleQ("ru_RU").Country()
#--> russialibrary testno extensionlanguage 1 examples runno extension
composed example
o1 = new stzLocale([ :Country = :south_africa ]) ? o1.LanguageNumber() #--> 140composed from the signature, run for this page
The country stays as the FALLBACK: a locale naming a country but no recognised language is still better answered by that country's language than by nothing. 6 examples runalso written: Langauge · Language
o1 = new stzLocale([ :Country = "Niger" ]) ? o1.Abbreviation() ? o1.LanguageName() ? o1.CountryName() #--> fr_NE #--> french #--> nigerlibrary testno extension
LanguageNativeName
languageno extension
composed example
o1 = new stzLocale([ :Country = :south_africa ]) ? o1.LanguageNativeName() #--> isiZulucomposed from the signature, run for this page
LanguageAbbreviation
languageno extension
composed example
o1 = new stzLocale([ :Country = :south_africa ]) ? o1.LanguageAbbreviation() #--> zucomposed from the signature, run for this page
LanguageShortAbbreviation
languageno extension
composed example
o1 = new stzLocale([ :Country = :south_africa ]) ? o1.LanguageShortAbbreviation() #--> zucomposed from the signature, run for this page
LanguageLongAbbreviation
languageno extension
composed example
o1 = new stzLocale([ :Country = :south_africa ]) ? o1.LanguageLongAbbreviation() #--> zulcomposed from the signature, run for this page
ScriptNumber
scriptalso written: ScriptCodeno extension
composed example
o1 = new stzLocale([ :Country = :south_africa ]) ? o1.ScriptNumber() #--> 7composed from the signature, run for this page
script 2 examples runalso written: Script
o1 = new stzLocale("pt_Latn_BR")
? o1.Abbreviation()
? o1.language()
? o1.Script()
? o1.Country()
#--> pt_BR
#--> portuguese
#--> latin
#--> brazillibrary testno extensionScriptAbbreviation
scriptno extension
composed example
o1 = new stzLocale([ :Country = :south_africa ]) ? o1.ScriptAbbreviation() #--> Latncomposed from the signature, run for this page
CurrencyName
(no comment in the source: the name reads as a sentence) currency namealso written: Currencyin the section currencyQCSXTZZZIBWU
composed example
o1 = new stzLocale([ :Country = :south_africa ]) ? o1.CurrencyName() #--> South african randcomposed from the signature, run for this page
CurrencyNativeName
(no comment in the source: the name reads as a sentence) currency native namein the section currencyno extension
composed example
o1 = new stzLocale([ :Country = :south_africa ]) ? o1.CurrencyNativeName() #--> south african randcomposed from the signature, run for this page
CurrencyAbbreviation
(no comment in the source: the name reads as a sentence) currency abbreviationin the section currencyno extension
composed example
o1 = new stzLocale([ :Country = :south_africa ]) ? o1.CurrencyAbbreviation() #--> ZARcomposed from the signature, run for this page
CurrencyISOSymbol
(no comment in the source: the name reads as a sentence) currency iso symbolin the section currencyno extension
composed example
o1 = new stzLocale([ :Country = :south_africa ]) ? o1.CurrencyISOSymbol() #--> ZARcomposed from the signature, run for this page
CurrencySymbol
(no comment in the source: the name reads as a sentence) currency symbolin the section currencyno extension
composed example
o1 = new stzLocale([ :Country = :south_africa ]) ? o1.CurrencySymbol() #--> Rcomposed from the signature, run for this page
CurrencyNativeSymbol
(no comment in the source: the name reads as a sentence) currency native symbolin the section currencyno extension
composed example
o1 = new stzLocale([ :Country = :south_africa ]) ? o1.CurrencyNativeSymbol() #--> Rcomposed from the signature, run for this page
CurrencyFractionalUnit
(no comment in the source: the name reads as a sentence) currency fractional unitalso written: CurrencyFractionin the section currencyno extension
composed example
o1 = new stzLocale([ :Country = :south_africa ]) ? o1.CurrencyFractionalUnit() #--> Centcomposed from the signature, run for this page
CurrencyBase
(no comment in the source: the name reads as a sentence) currency basein the section currencyno extension
composed example
o1 = new stzLocale([ :Country = :south_africa ]) ? o1.CurrencyBase() #--> 100composed from the signature, run for this page
CurrencyInfo
(no comment in the source: the name reads as a sentence) currency infoin the section currencyno extension
LOCALISED TIME MANAGEMENT # #TODO :Should be used by default in 2 examples run
Lc = new stzLocale("")
? Lc.amText()
? Lc.pmText()
oDateTime = StzDateTimeQ("2024-03-15 14:30:00")
? oDateTime.ToSimple()
#--> AM
#--> PM
#--> 15/03/2024 2:30 PMlibrary testno extension(no comment in the source: the name reads as a sentence) pm text 2 examples runin the section currency
Lc = new stzLocale("")
? Lc.amText()
? Lc.pmText()
oDateTime = StzDateTimeQ("2024-03-15 14:30:00")
? oDateTime.ToSimple()
#--> AM
#--> PM
#--> 15/03/2024 2:30 PMlibrary testno extension(no comment in the source: the name reads as a sentence) time short format 1 examples runin the section currency
o1 = new stzLocale("en-Latn-US")
? o1.Abbreviation()
? o1.TimeShortFormat()
? o1.TimeLongFormat()
? o1.TimeNarrowFormat()
#--> en_US
#--> h:mm AP
#--> h:mm:ss AP t
#--> h:mm APlibrary testno extensionYou can get the list of supported types by using LocaleTimeFormatTypes() 1 examples run
o1 = new stzLocale("en-Latn-US")
? o1.Abbreviation()
? o1.TimeShortFormat()
? o1.TimeLongFormat()
? o1.TimeNarrowFormat()
#--> en_US
#--> h:mm AP
#--> h:mm:ss AP t
#--> h:mm APlibrary testno extension(no comment in the source: the name reads as a sentence) time narrow format 1 examples runin the section currency
o1 = new stzLocale("en-Latn-US")
? o1.Abbreviation()
? o1.TimeShortFormat()
? o1.TimeLongFormat()
? o1.TimeNarrowFormat()
#--> en_US
#--> h:mm AP
#--> h:mm:ss AP t
#--> h:mm APlibrary testno extensionTimeFormat
(no comment in the source: the name reads as a sentence) time formatin the section currencyno extension
ToStzTime
(no comment in the source: the name reads as a sentence) to stz timein the section currencyno extension
ToTimeAsString
(no comment in the source: the name reads as a sentence) to time as stringin the section currencyno extension
ToTimeAsLongString
stzTime object "hh:mm:ss"no extension
ToTimeAsShortString
(no comment in the source: the name reads as a sentence) to time as short stringin the section currencyno extension
ToTimeAsNarrowString
(no comment in the source: the name reads as a sentence) to time as narrow stringin the section currencyno extension
DaysOfWeek
(no comment in the source: the name reads as a sentence) days of weekin the section dayno extension
composed example
o1 = new stzLocale([ :Country = :south_africa ]) ? @@( o1.DaysOfWeek() ) #--> [ "sunday", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday" ]composed from the signature, run for this page
NativeDaysOfWeek
(no comment in the source: the name reads as a sentence) native days of weekin the section dayno extension
composed example
o1 = new stzLocale([ :Country = :south_africa ]) ? @@( o1.NativeDaysOfWeek() ) #--> [ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" ]composed from the signature, run for this page
NthDayOfWeek
(no comment in the source: the name reads as a sentence) nth day of weekin the section dayno extension
composed example
o1 = new stzLocale([ :Country = :south_africa ]) ? o1.NthDayOfWeek(2) #--> mondaycomposed from the signature, run for this page
FirstDayOfWeek
(no comment in the source: the name reads as a sentence) first day of weekin the section dayno extension
composed example
o1 = new stzLocale([ :Country = :south_africa ]) ? o1.FirstDayOfWeek() #--> sundaycomposed from the signature, run for this page
LastDayOfWeek
(no comment in the source: the name reads as a sentence) last day of weekin the section dayno extension
composed example
o1 = new stzLocale([ :Country = :south_africa ]) ? o1.LastDayOfWeek() #--> saturdaycomposed from the signature, run for this page
NthNativeDayOfWeek
(no comment in the source: the name reads as a sentence) nth native day of weekalso written: NativeNthDayOfWeekin the section dayno extension
composed example
o1 = new stzLocale([ :Country = :south_africa ]) ? o1.NthNativeDayOfWeek(2) #--> Mondaycomposed from the signature, run for this page
FirstNativeDayOfWeek
(no comment in the source: the name reads as a sentence) first native day of weekalso written: NativeFirstDayOfWeekin the section dayno extension
composed example
o1 = new stzLocale([ :Country = :south_africa ]) ? o1.FirstNativeDayOfWeek() #--> Sundaycomposed from the signature, run for this page
LastNativeDayOfWeek
(no comment in the source: the name reads as a sentence) last native day of weekalso written: NativeLastDayOfWeekin the section dayno extension
composed example
o1 = new stzLocale([ :Country = :south_africa ]) ? o1.LastNativeDayOfWeek() #--> Saturdaycomposed from the signature, run for this page
NthDayOfWeekAbbreviation
(no comment in the source: the name reads as a sentence) nth day of week abbreviationin the section dayno extension
composed example
o1 = new stzLocale([ :Country = :south_africa ]) ? o1.NthDayOfWeekAbbreviation(2) #--> Moncomposed from the signature, run for this page
NthDayOfWeekNativeAbbreviation
This indexed the language's Monday-first list with _n_ directly, so it ignored the locale entirely: for Iran, NthDayOfWeekAbbreviation(1) said Sat and NthDayOfWeekNativeAbbreviation(1) said Mon -- the same day of the same week, named twice, differently.also written: NativeNthDayOfWeekAbbreviationno extension
composed example
o1 = new stzLocale([ :Country = :south_africa ]) ? o1.NthDayOfWeekNativeAbbreviation(2) #--> Moncomposed from the signature, run for this page
FirstDayOfWeekAbbreviation
(no comment in the source: the name reads as a sentence) first day of week abbreviationin the section dayno extension
composed example
o1 = new stzLocale([ :Country = :south_africa ]) ? o1.FirstDayOfWeekAbbreviation() #--> Suncomposed from the signature, run for this page
FirstNativeDayOfWeekAbbreviation
Same as NthDayOfWeekNativeAbbreviation: This indexed the language's Monday-first list with _n_ directly, so it ignored the locale entirely: for Iran, NthDayOfWeekAbbreviation(1) said Sat and NthDayOfWeekNativeAbbreviation(1) said Mon -- the same day of the same week, named twice, differently.also written: NativeFirstDayOfWeekAbbreviationno extension
composed example
o1 = new stzLocale([ :Country = :south_africa ]) ? o1.FirstNativeDayOfWeekAbbreviation() #--> Suncomposed from the signature, run for this page
LastDayOfWeekAbbreviation
(no comment in the source: the name reads as a sentence) last day of week abbreviationin the section dayno extension
composed example
o1 = new stzLocale([ :Country = :south_africa ]) ? o1.LastDayOfWeekAbbreviation() #--> Satcomposed from the signature, run for this page
LastNativeDayOfWeekAbbreviation
Same as NthDayOfWeekNativeAbbreviation: This indexed the language's Monday-first list with _n_ directly, so it ignored the locale entirely: for Iran, NthDayOfWeekAbbreviation(1) said Sat and NthDayOfWeekNativeAbbreviation(1) said Mon -- the same day of the same week, named twice, differently.also written: NativeLastDayOfWeekAbbreviationno extension
composed example
o1 = new stzLocale([ :Country = :south_africa ]) ? o1.LastNativeDayOfWeekAbbreviation() #--> Satcomposed from the signature, run for this page
NthDayOfWeekSymbol
(no comment in the source: the name reads as a sentence) nth day of week symbolin the section dayno extension
composed example
o1 = new stzLocale([ :Country = :south_africa ]) ? o1.NthDayOfWeekSymbol(2) #--> Mcomposed from the signature, run for this page
NthDayOfWeekNativeSymbol
(no comment in the source: the name reads as a sentence) nth day of week native symbolalso written: NativeNthDayOfWeekSymbolin the section dayno extension
composed example
o1 = new stzLocale([ :Country = :south_africa ]) ? o1.NthDayOfWeekNativeSymbol(2) #--> Mcomposed from the signature, run for this page
FirstDayOfWeekSymbol
(no comment in the source: the name reads as a sentence) first day of week symbolin the section dayno extension
composed example
o1 = new stzLocale([ :Country = :south_africa ]) ? o1.FirstDayOfWeekSymbol() #--> Scomposed from the signature, run for this page
FirstDayOfWeekNativeSymbol
(no comment in the source: the name reads as a sentence) first day of week native symbolalso written: NativeFirstDayOfWeekSymbolin the section dayno extension
composed example
o1 = new stzLocale([ :Country = :south_africa ]) ? o1.FirstDayOfWeekNativeSymbol() #--> Scomposed from the signature, run for this page
LastDayOfWeekSymbol
(no comment in the source: the name reads as a sentence) last day of week symbolin the section dayno extension
composed example
o1 = new stzLocale([ :Country = :south_africa ]) ? o1.LastDayOfWeekSymbol() #--> Scomposed from the signature, run for this page
LastDayOfWeekNativeSymbol
(no comment in the source: the name reads as a sentence) last day of week native symbolalso written: NativeLastDayOfWeekSymbolin the section dayno extension
composed example
o1 = new stzLocale([ :Country = :south_africa ]) ? o1.LastDayOfWeekNativeSymbol() #--> Scomposed from the signature, run for this page
NUMBER FORM # #TODO: Should be used by default in 1 examples runno extension
composed example
o1 = new stzLocale([ :Country = :south_africa ]) ? o1.DecimalPoint() #--> .composed from the signature, run for this page
(no comment in the source: the name reads as a sentence) exponential 1 examples runin the section dayno extension
composed example
o1 = new stzLocale([ :Country = :south_africa ]) ? o1.Exponential() #--> ecomposed from the signature, run for this page
(no comment in the source: the name reads as a sentence) group separator 1 examples runalso written: GroupSeperatorin the section dayno extension
(no comment in the source: the name reads as a sentence) negative sign 1 examples runin the section dayno extension
composed example
o1 = new stzLocale([ :Country = :south_africa ]) ? o1.NegativeSign() #--> -composed from the signature, run for this page
(no comment in the source: the name reads as a sentence) positive sign 1 examples runin the section dayno extension
composed example
o1 = new stzLocale([ :Country = :south_africa ]) ? o1.PositiveSign() #--> +composed from the signature, run for this page
(no comment in the source: the name reads as a sentence) percent 1 examples runin the section dayno extension
composed example
o1 = new stzLocale([ :Country = :south_africa ]) ? o1.Percent() #--> %composed from the signature, run for this page
(no comment in the source: the name reads as a sentence) string lowercased 1 examples runalso written: Lower · Lowercase · ToLowercasein the section string lower caseno extension
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.StringLowercased("a")
#--> acomposed from the signature, run for this pageCharLowercased
(no comment in the source: the name reads as a sentence) char lowercasedin the section string lower caseno extension
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.CharLowercased("a")
#--> acomposed from the signature, run for this pageStringIsLowercased
(no comment in the source: the name reads as a sentence) string is lowercasedalso written: StringIsLowercasein the section string lower caseno extension
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.StringIsLowercased("a")
#--> 1composed from the signature, run for this pageCharIsLowercased
(no comment in the source: the name reads as a sentence) char is lowercasedin the section string lower caseno extension
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.CharIsLowercased("a")
#--> 1composed from the signature, run for this page? TODO: support the special cases documented in unicode here: http://unicode.org/Public/UNIDATA/SpecialCasing.txt 1 examples runalso written: Upper · Uppercase · ToUppercaseno extension
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.StringUppercased("a")
#--> Acomposed from the signature, run for this pageCharUppercased
string upper caseno extension
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.CharUppercased("a")
#--> Acomposed from the signature, run for this pageStringIsUppercased
string upper casealso written: StringIsUppercaseno extension
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.StringIsUppercased("a")
#--> 0composed from the signature, run for this pageCharIsUppercased
string upper caseno extension
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.CharIsUppercased("a")
#--> 0composed from the signature, run for this pageStringTitlecased
string title caseno extension
ToTitleCase
string title caseno extension
StringIsTitlecased
string title casealso written: StringIsTitlecaseno extension
StringFoldcased
string fold casealso written: ToFoldcaseno extension
CharFoldcased
string fold caseno extension
StringIsfoldcased
string fold casealso written: StringIsFoldcaseno extension
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.StringIsfoldcased("a")
#--> 0composed from the signature, run for this pageCharIsFoldcased
string fold caseno extension
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.CharIsFoldcased("a")
#--> 0composed from the signature, run for this pageStringCapitalcased
(no comment in the source: the name reads as a sentence) string capitalcasedalso written: toCapitalcase · StringCapitalised · StringCapitalizedin the section string capital caseno extension
StringIsCapitalised
(no comment in the source: the name reads as a sentence) string is capitalisedalso written: StringIsCapitalcase · StringIsCapitalized · StringIsCapitalcasedin the section string capital caseno extension
MeasurementSystem
measurement systemno extension
pvtCurrencyXT
measurement systemno extension

