NumeralSystemTranslator.TranslateNumerals(String) Method

Definition

Converts a string of characters containing Latin digits to a string containing the corresponding digits of NumeralSystem.

public:
 virtual Platform::String ^ TranslateNumerals(Platform::String ^ value) = TranslateNumerals;
winrt::hstring TranslateNumerals(winrt::hstring const& value);
public string TranslateNumerals(string value);
function translateNumerals(value)
Public Function TranslateNumerals (value As String) As String

Parameters

value
String

Platform::String

winrt::hstring

A string of characters containing Latin digits to be converted.

Returns

String

Platform::String

winrt::hstring

A string containing the converted digits. This string may be a different length than value.

Remarks

Characters in value that are not Latin digits are not converted, but pass through unchanged. If value is null (representing an empty string) the result is null. If NumeralSystem is "Latn", value is passed through unchanged.

Note

For Arabic numeral systems ("Arab" and "ArabExt" or any numeral systems which use a combination of those characters):+ A period (.) immediately before a Latin digit is converted to the Arabic Decimal Separator (u+66b).

  • A comma (,) immediately before a Latin digit is converted to Arabic Thousand Separator (u+66c).
  • A percent (%) adjacent to a Latin digit is converted to Arabic Per Cent Symbol (u+66a).
  • A permille (u+2030) adjacent to a Latin digit is converted to Arabic Per Mille Symbol (u+609).

Applies to

See also