Softanza
StartFrançais
Softanza
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_DE
library testno extension
Value
infono extension
bcp47Abbreviation
info
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.bcp47Abbreviation()
#--> zu-ZA
composed from the signature, run for this page
no extension
(no comment in the source: the name reads as a sentence) country number 3 examples runin the section country
? StzLocaleQ([ :Country = :Tunisia ]).CountryNumber()
#--> 216
library testno extension
CountryShortAbbreviation
(no comment in the source: the name reads as a sentence) country short abbreviationalso written: CountryAbbreviationin the section country
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.CountryShortAbbreviation()
#--> ZA
composed from the signature, run for this page
no extension
CountryLongAbbreviation
(no comment in the source: the name reads as a sentence) country long abbreviationin the section country
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.CountryLongAbbreviation()
#--> ZAF
composed from the signature, run for this page
no extension
(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
#--> +227
library 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()
#--> russia
library testno extension
language 1 examples run
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.LanguageNumber()
#--> 140
composed from the signature, run for this page
no extension
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
#--> niger
library testno extension
LanguageNativeName
language
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.LanguageNativeName()
#--> isiZulu
composed from the signature, run for this page
no extension
LanguageAbbreviation
language
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.LanguageAbbreviation()
#--> zu
composed from the signature, run for this page
no extension
LanguageShortAbbreviation
language
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.LanguageShortAbbreviation()
#--> zu
composed from the signature, run for this page
no extension
LanguageLongAbbreviation
language
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.LanguageLongAbbreviation()
#--> zul
composed from the signature, run for this page
no extension
ScriptNumber
scriptalso written: ScriptCode
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.ScriptNumber()
#--> 7
composed from the signature, run for this page
no extension
script 2 examples runalso written: Script
o1 = new stzLocale("pt_Latn_BR")
? o1.Abbreviation()
? o1.language()
? o1.Script()
? o1.Country()
#--> pt_BR
#--> portuguese
#--> latin
#--> brazil
library testno extension
ScriptAbbreviation
script
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.ScriptAbbreviation()
#--> Latn
composed from the signature, run for this page
no extension
CurrencyName
(no comment in the source: the name reads as a sentence) currency namealso written: Currencyin the section currency
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.CurrencyName()
#--> South african rand
composed from the signature, run for this page
QCSXTZZZIBWU
CurrencyNativeName
(no comment in the source: the name reads as a sentence) currency native namein the section currency
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.CurrencyNativeName()
#--> south african rand
composed from the signature, run for this page
no extension
CurrencyAbbreviation
(no comment in the source: the name reads as a sentence) currency abbreviationin the section currency
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.CurrencyAbbreviation()
#--> ZAR
composed from the signature, run for this page
no extension
CurrencyISOSymbol
(no comment in the source: the name reads as a sentence) currency iso symbolin the section currency
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.CurrencyISOSymbol()
#--> ZAR
composed from the signature, run for this page
no extension
CurrencySymbol
(no comment in the source: the name reads as a sentence) currency symbolin the section currency
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.CurrencySymbol()
#--> R
composed from the signature, run for this page
no extension
CurrencyNativeSymbol
(no comment in the source: the name reads as a sentence) currency native symbolin the section currency
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.CurrencyNativeSymbol()
#--> R
composed from the signature, run for this page
no extension
CurrencyFractionalUnit
(no comment in the source: the name reads as a sentence) currency fractional unitalso written: CurrencyFractionin the section currency
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.CurrencyFractionalUnit()
#--> Cent
composed from the signature, run for this page
no extension
CurrencyBase
(no comment in the source: the name reads as a sentence) currency basein the section currency
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.CurrencyBase()
#--> 100
composed from the signature, run for this page
no extension
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 PM
library 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 PM
library 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 AP
library testno extension
You 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 AP
library 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 AP
library testno extension
TimeFormat
(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 day
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
no extension
NativeDaysOfWeek
(no comment in the source: the name reads as a sentence) native days of weekin the section day
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
no extension
NthDayOfWeek
(no comment in the source: the name reads as a sentence) nth day of weekin the section day
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.NthDayOfWeek(2)
#--> monday
composed from the signature, run for this page
no extension
FirstDayOfWeek
(no comment in the source: the name reads as a sentence) first day of weekin the section day
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.FirstDayOfWeek()
#--> sunday
composed from the signature, run for this page
no extension
LastDayOfWeek
(no comment in the source: the name reads as a sentence) last day of weekin the section day
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.LastDayOfWeek()
#--> saturday
composed from the signature, run for this page
no extension
NthNativeDayOfWeek
(no comment in the source: the name reads as a sentence) nth native day of weekalso written: NativeNthDayOfWeekin the section day
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.NthNativeDayOfWeek(2)
#--> Monday
composed from the signature, run for this page
no extension
FirstNativeDayOfWeek
(no comment in the source: the name reads as a sentence) first native day of weekalso written: NativeFirstDayOfWeekin the section day
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.FirstNativeDayOfWeek()
#--> Sunday
composed from the signature, run for this page
no extension
LastNativeDayOfWeek
(no comment in the source: the name reads as a sentence) last native day of weekalso written: NativeLastDayOfWeekin the section day
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.LastNativeDayOfWeek()
#--> Saturday
composed from the signature, run for this page
no extension
NthDayOfWeekAbbreviation
(no comment in the source: the name reads as a sentence) nth day of week abbreviationin the section day
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.NthDayOfWeekAbbreviation(2)
#--> Mon
composed from the signature, run for this page
no extension
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: NativeNthDayOfWeekAbbreviation
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.NthDayOfWeekNativeAbbreviation(2)
#--> Mon
composed from the signature, run for this page
no extension
FirstDayOfWeekAbbreviation
(no comment in the source: the name reads as a sentence) first day of week abbreviationin the section day
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.FirstDayOfWeekAbbreviation()
#--> Sun
composed from the signature, run for this page
no extension
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: NativeFirstDayOfWeekAbbreviation
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.FirstNativeDayOfWeekAbbreviation()
#--> Sun
composed from the signature, run for this page
no extension
LastDayOfWeekAbbreviation
(no comment in the source: the name reads as a sentence) last day of week abbreviationin the section day
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.LastDayOfWeekAbbreviation()
#--> Sat
composed from the signature, run for this page
no extension
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: NativeLastDayOfWeekAbbreviation
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.LastNativeDayOfWeekAbbreviation()
#--> Sat
composed from the signature, run for this page
no extension
NthDayOfWeekSymbol
(no comment in the source: the name reads as a sentence) nth day of week symbolin the section day
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.NthDayOfWeekSymbol(2)
#--> M
composed from the signature, run for this page
no extension
NthDayOfWeekNativeSymbol
(no comment in the source: the name reads as a sentence) nth day of week native symbolalso written: NativeNthDayOfWeekSymbolin the section day
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.NthDayOfWeekNativeSymbol(2)
#--> M
composed from the signature, run for this page
no extension
FirstDayOfWeekSymbol
(no comment in the source: the name reads as a sentence) first day of week symbolin the section day
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.FirstDayOfWeekSymbol()
#--> S
composed from the signature, run for this page
no extension
FirstDayOfWeekNativeSymbol
(no comment in the source: the name reads as a sentence) first day of week native symbolalso written: NativeFirstDayOfWeekSymbolin the section day
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.FirstDayOfWeekNativeSymbol()
#--> S
composed from the signature, run for this page
no extension
LastDayOfWeekSymbol
(no comment in the source: the name reads as a sentence) last day of week symbolin the section day
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.LastDayOfWeekSymbol()
#--> S
composed from the signature, run for this page
no extension
LastDayOfWeekNativeSymbol
(no comment in the source: the name reads as a sentence) last day of week native symbolalso written: NativeLastDayOfWeekSymbolin the section day
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.LastDayOfWeekNativeSymbol()
#--> S
composed from the signature, run for this page
no extension
NUMBER FORM # #TODO: Should be used by default in 1 examples run
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.DecimalPoint()
#--> .
composed from the signature, run for this page
no extension
(no comment in the source: the name reads as a sentence) exponential 1 examples runin the section day
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.Exponential()
#--> e
composed from the signature, run for this page
no extension
(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 day
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.NegativeSign()
#--> -
composed from the signature, run for this page
no extension
(no comment in the source: the name reads as a sentence) positive sign 1 examples runin the section day
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.PositiveSign()
#--> +
composed from the signature, run for this page
no extension
(no comment in the source: the name reads as a sentence) percent 1 examples runin the section day
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.Percent()
#--> %
composed from the signature, run for this page
no extension
(no comment in the source: the name reads as a sentence) string lowercased 1 examples runalso written: Lower · Lowercase · ToLowercasein the section string lower case
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.StringLowercased("a")
#--> a
composed from the signature, run for this page
no extension
CharLowercased
(no comment in the source: the name reads as a sentence) char lowercasedin the section string lower case
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.CharLowercased("a")
#--> a
composed from the signature, run for this page
no extension
StringIsLowercased
(no comment in the source: the name reads as a sentence) string is lowercasedalso written: StringIsLowercasein the section string lower case
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.StringIsLowercased("a")
#--> 1
composed from the signature, run for this page
no extension
CharIsLowercased
(no comment in the source: the name reads as a sentence) char is lowercasedin the section string lower case
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.CharIsLowercased("a")
#--> 1
composed from the signature, run for this page
no extension
? TODO: support the special cases documented in unicode here: http://unicode.org/Public/UNIDATA/SpecialCasing.txt 1 examples runalso written: Upper · Uppercase · ToUppercase
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.StringUppercased("a")
#--> A
composed from the signature, run for this page
no extension
CharUppercased
string upper case
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.CharUppercased("a")
#--> A
composed from the signature, run for this page
no extension
StringIsUppercased
string upper casealso written: StringIsUppercase
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.StringIsUppercased("a")
#--> 0
composed from the signature, run for this page
no extension
CharIsUppercased
string upper case
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.CharIsUppercased("a")
#--> 0
composed from the signature, run for this page
no extension
StringTitlecased
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: StringIsFoldcase
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.StringIsfoldcased("a")
#--> 0
composed from the signature, run for this page
no extension
CharIsFoldcased
string fold case
composed example
o1 = new stzLocale([ :Country = :south_africa ])
? o1.CharIsFoldcased("a")
#--> 0
composed from the signature, run for this page
no extension
StringCapitalcased
(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