File: CurrencyFormatter.hx

package info (click to toggle)
haxe 1%3A4.3.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 44,520 kB
  • sloc: ml: 137,268; ansic: 2,491; makefile: 456; java: 386; cs: 336; cpp: 318; python: 318; sh: 75; objc: 64; php: 50; xml: 31; javascript: 11
file content (53 lines) | stat: -rw-r--r-- 2,936 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
package flash.globalization;

@:require(flash10_1) extern final class CurrencyFormatter {
	@:flash.property var actualLocaleIDName(get,never) : String;
	@:flash.property var currencyISOCode(get,never) : String;
	@:flash.property var currencySymbol(get,never) : String;
	@:flash.property var decimalSeparator(get,set) : String;
	@:flash.property var digitsType(get,set) : UInt;
	@:flash.property var fractionalDigits(get,set) : Int;
	@:flash.property var groupingPattern(get,set) : String;
	@:flash.property var groupingSeparator(get,set) : String;
	@:flash.property var lastOperationStatus(get,never) : LastOperationStatus;
	@:flash.property var leadingZero(get,set) : Bool;
	@:flash.property var negativeCurrencyFormat(get,set) : UInt;
	@:flash.property var negativeSymbol(get,set) : String;
	@:flash.property var positiveCurrencyFormat(get,set) : UInt;
	@:flash.property var requestedLocaleIDName(get,never) : String;
	@:flash.property var trailingZeros(get,set) : Bool;
	@:flash.property var useGrouping(get,set) : Bool;
	function new(requestedLocaleIDName : String) : Void;
	function format(value : Float, withCurrencySymbol : Bool = false) : String;
	function formattingWithCurrencySymbolIsSafe(requestedISOCode : String) : Bool;
	private function get_actualLocaleIDName() : String;
	private function get_currencyISOCode() : String;
	private function get_currencySymbol() : String;
	private function get_decimalSeparator() : String;
	private function get_digitsType() : UInt;
	private function get_fractionalDigits() : Int;
	private function get_groupingPattern() : String;
	private function get_groupingSeparator() : String;
	private function get_lastOperationStatus() : LastOperationStatus;
	private function get_leadingZero() : Bool;
	private function get_negativeCurrencyFormat() : UInt;
	private function get_negativeSymbol() : String;
	private function get_positiveCurrencyFormat() : UInt;
	private function get_requestedLocaleIDName() : String;
	private function get_trailingZeros() : Bool;
	private function get_useGrouping() : Bool;
	function parse(inputString : String) : CurrencyParseResult;
	function setCurrency(currencyISOCode : String, currencySymbol : String) : Void;
	private function set_decimalSeparator(value : String) : String;
	private function set_digitsType(value : UInt) : UInt;
	private function set_fractionalDigits(value : Int) : Int;
	private function set_groupingPattern(value : String) : String;
	private function set_groupingSeparator(value : String) : String;
	private function set_leadingZero(value : Bool) : Bool;
	private function set_negativeCurrencyFormat(value : UInt) : UInt;
	private function set_negativeSymbol(value : String) : String;
	private function set_positiveCurrencyFormat(value : UInt) : UInt;
	private function set_trailingZeros(value : Bool) : Bool;
	private function set_useGrouping(value : Bool) : Bool;
	static function getAvailableLocaleIDNames() : flash.Vector<String>;
}