Locale

Overview

Class that can hold locale info for converting integers/floats/dates to and from string.

Location

  • Reference:
    • Elements.dll  .NET, .NET Standard 2.0
    • elements.jar  Cooper
    • Elements.fx  Island, ToffeeV2
    • libElements.fx  Toffee
  • Namespace: RemObjects.Elements.RTL
  • Mapped to:
    • System.Globalization.CultureInfo  .NET
    • java.util.Locale  Cooper
    • RemObjects.Elements.System.Locale  Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu-armv6, Island-Ubuntu-x86_64, Island-watchOS Simulator, Island-watchOS-armv7k, Island-WebAssembly-wasm32, Island-Windows
    • Foundation.NSLocale  Toffee-iOS, Toffee-iOS Simulator, Toffee-macOS, Toffee-tvOS, Toffee-tvOS Simulator, Toffee-watchOS, Toffee-watchOS Simulator

 

constructor .NET, .NET Standard 2.0, Cooper, Island, Toffee

Create a locale by name.

 

constructor(aLocale: String)

 

Locale(String aLocale)

 

init(_ aLocale: String)

 

Locale(String aLocale)

Parameters:

  • aLocale:

constructor init ToffeeV2

Create a locale by name.

 

func constructor init(_ aLocale: String)

Parameters:

  • aLocale:

Current

Returns the current/default locale.

 

class property Current: Locale read;

 

class Locale Current { get; }

 

static var Current: Locale { get{} }

 

class Locale Current { __get; }

DateTimeFormat

Returns the datetime format for this locale.

 

property DateTimeFormat: DateTimeFormatInfo read;

 

DateTimeFormatInfo DateTimeFormat { get; }

 

var DateTimeFormat: DateTimeFormatInfo { get{} }

 

DateTimeFormatInfo DateTimeFormat { __get; }

Identifier

name of this locale.

 

property Identifier: not nullable String read;

 

String! Identifier { get; }

 

var Identifier: String { get{} }

 

String! Identifier { __get; }

Invariant

Returns the invariant locale.

 

class property Invariant: Locale read;

 

class Locale Invariant { get; }

 

static var Invariant: Locale { get{} }

 

class Locale Invariant { __get; }

NumberFormat

Number format data.

 

property NumberFormat: NumberFormatInfo read;

 

NumberFormatInfo NumberFormat { get; }

 

var NumberFormat: NumberFormatInfo { get{} }

 

NumberFormatInfo NumberFormat { __get; }

PlatformLocale

Gets the underlying object for this platform.

 

// .NET, .NET Standard 2.0
property PlatformLocale: CultureInfo read;
// Island
property PlatformLocale: Locale read;

 

// .NET, .NET Standard 2.0
CultureInfo PlatformLocale { get; }
// Island
Locale PlatformLocale { get; }

 

// .NET, .NET Standard 2.0
var PlatformLocale: CultureInfo { get{} }
// Island
var PlatformLocale: Locale { get{} }
// Toffee, ToffeeV2
var PlatformLocale: NSLocale { get{} }

 

Locale PlatformLocale { __get; }

 

DateTimeFormat

Returns the datetime format for this locale.

 

property DateTimeFormat: DateTimeFormatInfo read;

 

DateTimeFormatInfo DateTimeFormat { get; }

 

var DateTimeFormat: DateTimeFormatInfo { get{} }

 

DateTimeFormatInfo DateTimeFormat { __get; }

Identifier

name of this locale.

 

property Identifier: not nullable String read;

 

String! Identifier { get; }

 

var Identifier: String { get{} }

 

String! Identifier { __get; }

NumberFormat

Number format data.

 

property NumberFormat: NumberFormatInfo read;

 

NumberFormatInfo NumberFormat { get; }

 

var NumberFormat: NumberFormatInfo { get{} }

 

NumberFormatInfo NumberFormat { __get; }

PlatformLocale

Gets the underlying object for this platform.

 

// .NET, .NET Standard 2.0
property PlatformLocale: CultureInfo read;
// Island
property PlatformLocale: Locale read;

 

// .NET, .NET Standard 2.0
CultureInfo PlatformLocale { get; }
// Island
Locale PlatformLocale { get; }

 

// .NET, .NET Standard 2.0
var PlatformLocale: CultureInfo { get{} }
// Island
var PlatformLocale: Locale { get{} }
// Toffee, ToffeeV2
var PlatformLocale: NSLocale { get{} }

 

Locale PlatformLocale { __get; }

Current

Returns the current/default locale.

 

class property Current: Locale read;

 

class Locale Current { get; }

 

static var Current: Locale { get{} }

 

class Locale Current { __get; }

Invariant

Returns the invariant locale.

 

class property Invariant: Locale read;

 

class Locale Invariant { get; }

 

static var Invariant: Locale { get{} }

 

class Locale Invariant { __get; }

 

constructor init ToffeeV2

Create a locale by name.

 

func constructor init(_ aLocale: String)

Parameters:

  • aLocale:

constructor .NET, .NET Standard 2.0, Cooper, Island, Toffee

Create a locale by name.

 

constructor(aLocale: String)

 

Locale(String aLocale)

 

init(_ aLocale: String)

 

Locale(String aLocale)

Parameters:

  • aLocale: