diff --git a/nfp.go b/nfp.go index 0dee611..7db8e50 100644 --- a/nfp.go +++ b/nfp.go @@ -444,18 +444,20 @@ func (ps *Parser) getTokens() Tokens { } if ps.currentChar() == Underscore { - if ps.nextChar() == ParenOpen || ps.nextChar() == ParenClose { - if ps.Token.TType != "" { - ps.Tokens.add(ps.Token.TValue, ps.Token.TType, ps.Token.Parts) - } - ps.Token.TValue = ps.nextChar() - ps.Token.TType = TokenTypeAlignment + if ps.Token.TType != "" { + ps.Tokens.add(ps.Token.TValue, ps.Token.TType, ps.Token.Parts) } + ps.Token.TValue = Whitespace + ps.Token.TType = TokenTypeAlignment ps.Offset += 2 continue } if ps.currentChar() == Asterisk { + if ps.Token.TValue != "" { + ps.Tokens.add(ps.Token.TValue, ps.Token.TType, ps.Token.Parts) + ps.Token = Token{} + } ps.Tokens.add(ps.nextChar(), TokenTypeRepeatsChar, ps.Token.Parts) ps.Token = Token{} ps.Offset += 2 diff --git a/nfp_test.go b/nfp_test.go index db1d930..1d71e99 100644 --- a/nfp_test.go +++ b/nfp_test.go @@ -42,9 +42,9 @@ var testStrings [][]string = [][]string{ {"#,##0 ;[red](#,##0)", "[{Positive [{# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} { Literal []}]} {Negative [{red Color []} {( Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {) Literal []}]}]"}, {"#,##0.00;(#,##0.00)", "[{Positive [{# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []}]} {Negative [{( Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} {) Literal []}]}]"}, {"#,##0.00;[red](#,##0.00)", "[{Positive [{# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []}]} {Negative [{red Color []} {( Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} {) Literal []}]}]"}, - {`_(* #,##0_);_(* \(#,##0\);_(* "-"_);_(@_)`, "[{Positive [{ RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {) Alignment []}]} {Negative [{ RepeatsChar []} {( Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {) Literal []}]} {Zero [{ RepeatsChar []} {- Literal []} {) Alignment []}]} {Text [{( Alignment []} {@ TextPlaceHolder []} {) Alignment []}]}]"}, - {`_("$"* #,##0_);_("$"* \(#,##0\);_("$"* "-"_);_(@_)`, "[{Positive [{( Alignment []} {$ Literal []} { RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {) Alignment []}]} {Negative [{( Alignment []} {$ Literal []} { RepeatsChar []} {( Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {) Literal []}]} {Zero [{( Alignment []} {$ Literal []} { RepeatsChar []} {- Literal []} {) Alignment []}]} {Text [{( Alignment []} {@ TextPlaceHolder []} {) Alignment []}]}]"}, - {`_(* #,##0.00_);_(* \(#,##0.00\);_(* "-"??_);_(@_)`, "[{Positive [{ RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} {) Alignment []}]} {Negative [{ RepeatsChar []} {( Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} {) Literal []}]} {Zero [{ RepeatsChar []} {- Literal []} {?? DigitalPlaceHolder []} {) Alignment []}]} {Text [{( Alignment []} {@ TextPlaceHolder []} {) Alignment []}]}]"}, + {`_(* #,##0_);_(* \(#,##0\);_(* "-"_);_(@_)`, "[{Positive [{ Alignment []} { RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} { Alignment []}]} {Negative [{ Alignment []} { RepeatsChar []} {( Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {) Literal []}]} {Zero [{ Alignment []} { RepeatsChar []} {- Literal []} { Alignment []}]} {Text [{ Alignment []} {@ TextPlaceHolder []} { Alignment []}]}]"}, + {`_("$"* #,##0_);_("$"* \(#,##0\);_("$"* "-"_);_(@_)`, "[{Positive [{ Alignment []} {$ Literal []} { RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} { Alignment []}]} {Negative [{ Alignment []} {$ Literal []} { RepeatsChar []} {( Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {) Literal []}]} {Zero [{ Alignment []} {$ Literal []} { RepeatsChar []} {- Literal []} { Alignment []}]} {Text [{ Alignment []} {@ TextPlaceHolder []} { Alignment []}]}]"}, + {`_(* #,##0.00_);_(* \(#,##0.00\);_(* "-"??_);_(@_)`, "[{Positive [{ Alignment []} { RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} { Alignment []}]} {Negative [{ Alignment []} { RepeatsChar []} {( Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} {) Literal []}]} {Zero [{ Alignment []} { RepeatsChar []} {- Literal []} {?? DigitalPlaceHolder []} { Alignment []}]} {Text [{ Alignment []} {@ TextPlaceHolder []} { Alignment []}]}]"}, {"mm:ss", "[{Positive [{mm DateTimes []} {: Literal []} {ss DateTimes []}]}]"}, {"[h]:mm:ss", "[{Positive [{h ElapsedDateTimes []} {: Literal []} {mm DateTimes []} {: Literal []} {ss DateTimes []}]}]"}, {"mmss.0", "[{Positive [{mm DateTimes []} {ss DateTimes []} {. DecimalPoint []} {0 ZeroPlaceHolder []}]}]"}, @@ -80,7 +80,7 @@ var testStrings [][]string = [][]string{ {`[$-412]AM/PM\ h"시"\ mm"분"\ ss"초";@`, "[{Positive [{[$-412] CurrencyLanguage [{{412 LanguageInfo []} }]} {AM/PM DateTimes []} { Literal []} {h DateTimes []} {시 Literal []} { Literal []} {mm DateTimes []} {분 Literal []} { Literal []} {ss DateTimes []} {초 Literal []}]} {Text [{@ TextPlaceHolder []}]}]"}, {`dddd,,, MMMM d,, yyyy,,,,`, "[{Positive [{dddd DateTimes []} {, Literal []} { Literal []} {MMMM DateTimes []} { Literal []} {d DateTimes []} {, Literal []} { Literal []} {yyyy DateTimes []} {, Literal []}]}]"}, {`m/d/yyyy\ h:mm:ss AM/PM;@`, "[{Positive [{m DateTimes []} {/ Literal []} {d DateTimes []} {/ Literal []} {yyyy DateTimes []} { Literal []} {h DateTimes []} {: Literal []} {mm DateTimes []} {: Literal []} {ss DateTimes []} { Literal []} {AM/PM DateTimes []}]} {Text [{@ TextPlaceHolder []}]}]"}, - {`[$SFr.-810] #,##0.00_);[Red]([$SFr.-810] #,##0.00\)`, "[{Positive [{[$SFr.-810] CurrencyLanguage [{{SFr. CurrencyString []} } {{810 LanguageInfo []} }]} { Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} {) Alignment []}]} {Negative [{Red Color []} {( Literal []} {[$SFr.-810] CurrencyLanguage [{{SFr. CurrencyString []} } {{810 LanguageInfo []} }]} { Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} {) Literal []}]}]"}, + {`[$SFr.-810] #,##0.00_);[Red]([$SFr.-810] #,##0.00\)`, "[{Positive [{[$SFr.-810] CurrencyLanguage [{{SFr. CurrencyString []} } {{810 LanguageInfo []} }]} { Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} { Alignment []}]} {Negative [{Red Color []} {( Literal []} {[$SFr.-810] CurrencyLanguage [{{SFr. CurrencyString []} } {{810 LanguageInfo []} }]} { Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} {) Literal []}]}]"}, {`??/??`, "[{Positive [{?? DigitalPlaceHolder []} {/ Fraction []} {?? DigitalPlaceHolder []}]}]"}, {"\" Excellent\"", "[{Positive [{ Excellent Literal []}]}]"}, {"\" Fair\"", "[{Positive [{ Fair Literal []}]}]"}, @@ -89,11 +89,11 @@ var testStrings [][]string = [][]string{ {"\" Very Good\"", "[{Positive [{ Very Good Literal []}]}]"}, {"\"$\"#,##0", "[{Positive [{$ Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []}]}]"}, {"\"$\"#,##0.00", "[{Positive [{$ Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []}]}]"}, - {"\"$\"#,##0.00_,[Red]\\(\"$\"#,##0.00\\)", "[{Positive [{$ Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} {Red Color []} {( Literal []} {$ Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} {) Literal []}]}]"}, - {"\"$\"#,##0.00_,\\(\"$\"#,##0.00\\)", "[{Positive [{$ Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} {( Literal []} {$ Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} {) Literal []}]}]"}, + {"\"$\"#,##0.00_,[Red]\\(\"$\"#,##0.00\\)", "[{Positive [{$ Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} { Alignment []} {Red Color []} {( Literal []} {$ Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} {) Literal []}]}]"}, + {"\"$\"#,##0.00_,\\(\"$\"#,##0.00\\)", "[{Positive [{$ Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} { Alignment []} {( Literal []} {$ Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} {) Literal []}]}]"}, {"\"$\"#,##0;[Red]\\-\"$\"#,##0", "[{Positive [{$ Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []}]} {Negative [{Red Color []} {- Literal []} {$ Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []}]}]"}, - {"\"$\"#,##0_,[Red]\\(\"$\"#,##0\\)", "[{Positive [{$ Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {Red Color []} {( Literal []} {$ Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {) Literal []}]}]"}, - {"\"$\"#,##0_,\\(\"$\"#,##0\\)", "[{Positive [{$ Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {( Literal []} {$ Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {) Literal []}]}]"}, + {"\"$\"#,##0_,[Red]\\(\"$\"#,##0\\)", "[{Positive [{$ Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} { Alignment []} {Red Color []} {( Literal []} {$ Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {) Literal []}]}]"}, + {"\"$\"#,##0_,\\(\"$\"#,##0\\)", "[{Positive [{$ Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} { Alignment []} {( Literal []} {$ Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {) Literal []}]}]"}, {"\"Haha!\"\\ @\\ \"Yeah!\"", "[{Text [{Haha! Literal []} { Literal []} {@ TextPlaceHolder []} { Literal []} {Yeah! Literal []}]}]"}, {"\"TRUE\";\"TRUE\";\"FALSE\"", "[{Positive [{TRUE Literal []}]} {Negative [{TRUE Literal []}]} {Zero [{FALSE Literal []}]}]"}, {"\"True\";\"True\";\"False\";@", "[{Positive [{True Literal []}]} {Negative [{True Literal []}]} {Zero [{False Literal []}]} {Text [{@ TextPlaceHolder []}]}]"}, @@ -103,7 +103,7 @@ var testStrings [][]string = [][]string{ {"\"£\"#,##0.00", "[{Positive [{£ Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []}]}]"}, {"\"£\"#,##0;[Red]\\-\"£\"#,##0", "[{Positive [{£ Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []}]} {Negative [{Red Color []} {- Literal []} {£ Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []}]}]"}, {"\"€\"#,##0.00", "[{Positive [{€ Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []}]}]"}, - {"\"€\"\\ #,##0.00_-", "[{Positive [{€ Literal []} { Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []}]}]"}, + {"\"€\"\\ #,##0.00_-", "[{Positive [{€ Literal []} { Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} { Alignment []}]}]"}, {"\"上午/下午 \"hh\"時\"mm\"分\"ss\"秒 \"", "[{Positive [{上午/下午 DateTimes []} { Literal []} {hh DateTimes []} {時 Literal []} {mm DateTimes []} {分 Literal []} {ss DateTimes []} {秒 Literal []}]}]"}, {"\"¥\"#,##0.00;\"¥\"\\-#,##0.00", "[{Positive [{¥ Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []}]} {Negative [{¥ Literal []} {- Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []}]}]"}, {"#", "[{Positive [{# HashPlaceHolder []}]}]"}, @@ -131,36 +131,36 @@ var testStrings [][]string = [][]string{ {`#,##0.00000000`, "[{Positive [{# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00000000 ZeroPlaceHolder []}]}]"}, {`#,##0.000000000`, "[{Positive [{# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {000000000 ZeroPlaceHolder []}]}]"}, {`#,##0.00000000;[Red]#,##0.00000000`, "[{Positive [{# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00000000 ZeroPlaceHolder []}]} {Negative [{Red Color []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00000000 ZeroPlaceHolder []}]}]"}, - {`#,##0.0000_ `, "[{Positive [{# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {0000 ZeroPlaceHolder []}]}]"}, - {`#,##0.000_ `, "[{Positive [{# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {000 ZeroPlaceHolder []}]}]"}, - {`#,##0.000_,\(#,##0.000\)`, "[{Positive [{# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {000 ZeroPlaceHolder []} {( Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {000 ZeroPlaceHolder []} {) Literal []}]}]"}, + {`#,##0.0000_ `, "[{Positive [{# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {0000 ZeroPlaceHolder []} { Alignment []}]}]"}, + {`#,##0.000_ `, "[{Positive [{# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {000 ZeroPlaceHolder []} { Alignment []}]}]"}, + {`#,##0.000_,\(#,##0.000\)`, "[{Positive [{# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {000 ZeroPlaceHolder []} { Alignment []} {( Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {000 ZeroPlaceHolder []} {) Literal []}]}]"}, {`#,##0.00;(#,##0.00)`, "[{Positive [{# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []}]} {Negative [{( Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} {) Literal []}]}]"}, {`#,##0.00;(#,##0.00,0.00`, "[{Positive [{# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []}]} {Negative [{( Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} {, ThousandsSeparator []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []}]}]"}, {`#,##0.00;[Red](#,##0.00)`, "[{Positive [{# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []}]} {Negative [{Red Color []} {( Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} {) Literal []}]}]"}, {`#,##0.00;[Red]\(#,##0.00\)`, "[{Positive [{# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []}]} {Negative [{Red Color []} {( Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} {) Literal []}]}]"}, {`#,##0.00;\(#,##0.00\)`, "[{Positive [{# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []}]} {Negative [{( Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} {) Literal []}]}]"}, - {`#,##0.00[$₹-449]_,\(#,##0.00[$₹-449]\)`, "[{Positive [{# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} {[$₹-449] CurrencyLanguage [{{₹ CurrencyString []} } {{449 LanguageInfo []} }]} {( Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} {[$₹-449] CurrencyLanguage [{{₹ CurrencyString []} } {{449 LanguageInfo []} }]} {) Literal []}]}]"}, + {"#,##0.00[$\u20B9-449]_,\\(#,##0.00[$\u20B9-449]\\)", "[{Positive [{# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} {[$\u20B9-449] CurrencyLanguage [{{\u20B9 CurrencyString []} } {{449 LanguageInfo []} }]} { Alignment []} {( Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} {[$\u20B9-449] CurrencyLanguage [{{\u20B9 CurrencyString []} } {{449 LanguageInfo []} }]} {) Literal []}]}]"}, {`#,##0.00\ "p."`, "[{Positive [{# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} { Literal []} {p. Literal []}]}]"}, {`#,##0.00\ "p.";[Red]\-#,##0.00\ "p."`, "[{Positive [{# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} { Literal []} {p. Literal []}]} {Negative [{Red Color []} {- Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} { Literal []} {p. Literal []}]}]"}, {`#,##0.00\ [$€-407]`, "[{Positive [{# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} { Literal []} {[$€-407] CurrencyLanguage [{{€ CurrencyString []} } {{407 LanguageInfo []} }]}]}]"}, {`#,##0.00\ [$€-40C]`, "[{Positive [{# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} { Literal []} {[$€-40C] CurrencyLanguage [{{€ CurrencyString []} } {{40C LanguageInfo []} }]}]}]"}, - {`#,##0.00_,\(#,##0.00\)`, "[{Positive [{# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} {( Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} {) Literal []}]}]"}, - {`#,##0.00_р_.;[Red]\-#,##0.00_р_.`, "[{Positive [{# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []}]} {Negative [{Red Color []} {- Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []}]}]"}, - {`#,##0.00_р_.;\-#,##0.00_р_.`, "[{Positive [{# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []}]} {Negative [{- Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []}]}]"}, + {`#,##0.00_,\(#,##0.00\)`, "[{Positive [{# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} { Alignment []} {( Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} {) Literal []}]}]"}, + {`#,##0.00_р_.;[Red]\-#,##0.00_р_.`, "[{Positive [{# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} { Alignment []} { Alignment []}]} {Negative [{Red Color []} {- Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} { Alignment []} { Alignment []}]}]"}, + {`#,##0.00_р_.;\-#,##0.00_р_.`, "[{Positive [{# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} { Alignment []} { Alignment []}]} {Negative [{- Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} { Alignment []} { Alignment []}]}]"}, {`#,##0.0;[Red]#,##0.0`, "[{Positive [{# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {0 ZeroPlaceHolder []}]} {Negative [{Red Color []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {0 ZeroPlaceHolder []}]}]"}, - {`#,##0.0_ ;\-#,##0.0\ `, "[{Positive [{# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {0 ZeroPlaceHolder []}]} {Negative [{- Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {0 ZeroPlaceHolder []} { Literal []}]}]"}, - {`#,##0.0_,[Red]\(#,##0.0\)`, "[{Positive [{# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {0 ZeroPlaceHolder []} {Red Color []} {( Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {0 ZeroPlaceHolder []} {) Literal []}]}]"}, - {`#,##0.0_,\(#,##0.0\)`, "[{Positive [{# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {0 ZeroPlaceHolder []} {( Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {0 ZeroPlaceHolder []} {) Literal []}]}]"}, + {`#,##0.0_ ;\-#,##0.0\ `, "[{Positive [{# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {0 ZeroPlaceHolder []} { Alignment []}]} {Negative [{- Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {0 ZeroPlaceHolder []} { Literal []}]}]"}, + {`#,##0.0_,[Red]\(#,##0.0\)`, "[{Positive [{# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {0 ZeroPlaceHolder []} { Alignment []} {Red Color []} {( Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {0 ZeroPlaceHolder []} {) Literal []}]}]"}, + {`#,##0.0_,\(#,##0.0\)`, "[{Positive [{# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {0 ZeroPlaceHolder []} { Alignment []} {( Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {0 ZeroPlaceHolder []} {) Literal []}]}]"}, {`#,##0;\-#,##0;0`, "[{Positive [{# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []}]} {Negative [{- Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []}]} {Zero [{0 ZeroPlaceHolder []}]}]"}, {`#,##0\ "р.";[Red]\-#,##0\ "р."`, "[{Positive [{# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} { Literal []} {р. Literal []}]} {Negative [{Red Color []} {- Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} { Literal []} {р. Literal []}]}]"}, {`#,##0\ "р.";\-#,##0\ "р."`, "[{Positive [{# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} { Literal []} {р. Literal []}]} {Negative [{- Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} { Literal []} {р. Literal []}]}]"}, {`#,##0\ ;[Red]\(#,##0\)`, "[{Positive [{# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} { Literal []}]} {Negative [{Red Color []} {( Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {) Literal []}]}]"}, {`#,##0\ ;\(#,##0\)`, "[{Positive [{# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} { Literal []}]} {Negative [{( Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {) Literal []}]}]"}, - {`#,##0_ `, "[{Positive [{# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []}]}]"}, - {`#,##0_ ;[Red]\-#,##0\ `, "[{Positive [{# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []}]} {Negative [{Red Color []} {- Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} { Literal []}]}]"}, - {`#,##0_,[Red]\(#,##0\)`, "[{Positive [{# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {Red Color []} {( Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {) Literal []}]}]"}, - {`#,##0_р_.;[Red]\-#,##0_р_.`, "[{Positive [{# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []}]} {Negative [{Red Color []} {- Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []}]}]"}, - {`#,##0_р_.;\-#,##0_р_.`, "[{Positive [{# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []}]} {Negative [{- Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []}]}]"}, + {`#,##0_ `, "[{Positive [{# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} { Alignment []}]}]"}, + {`#,##0_ ;[Red]\-#,##0\ `, "[{Positive [{# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} { Alignment []}]} {Negative [{Red Color []} {- Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} { Literal []}]}]"}, + {`#,##0_,[Red]\(#,##0\)`, "[{Positive [{# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} { Alignment []} {Red Color []} {( Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {) Literal []}]}]"}, + {`#,##0_р_.;[Red]\-#,##0_р_.`, "[{Positive [{# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} { Alignment []} { Alignment []}]} {Negative [{Red Color []} {- Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} { Alignment []} { Alignment []}]}]"}, + {`#,##0_р_.;\-#,##0_р_.`, "[{Positive [{# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} { Alignment []} { Alignment []}]} {Negative [{- Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} { Alignment []} { Alignment []}]}]"}, {`#.0000,,`, "[{Positive [{# HashPlaceHolder []} {. DecimalPoint []} {0000 ZeroPlaceHolder []} {, ThousandsSeparator []} {, Literal []}]}]"}, {`#0`, "[{Positive [{# HashPlaceHolder []} {0 ZeroPlaceHolder []}]}]"}, {`#0.00`, "[{Positive [{# HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []}]}]"}, @@ -198,9 +198,9 @@ var testStrings [][]string = [][]string{ {`0.0000E+00`, "[{Positive [{0 ZeroPlaceHolder []} {. DecimalPoint []} {0000 ZeroPlaceHolder []} {E+ Exponential []} {00 ZeroPlaceHolder []}]}]"}, {`0.00;[Red]0.00`, "[{Positive [{0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []}]} {Negative [{Red Color []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []}]}]"}, {`0.00E+00`, "[{Positive [{0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} {E+ Exponential []} {00 ZeroPlaceHolder []}]}]"}, - {`0.00_);[Red]\(0.00\)`, "[{Positive [{0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} {) Alignment []}]} {Negative [{Red Color []} {( Literal []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} {) Literal []}]}]"}, - {`0.00_);\(0.00\)`, "[{Positive [{0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} {) Alignment []}]} {Negative [{( Literal []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} {) Literal []}]}]"}, - {`0.0_ `, "[{Positive [{0 ZeroPlaceHolder []} {. DecimalPoint []} {0 ZeroPlaceHolder []}]}]"}, + {`0.00_);[Red]\(0.00\)`, "[{Positive [{0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} { Alignment []}]} {Negative [{Red Color []} {( Literal []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} {) Literal []}]}]"}, + {`0.00_);\(0.00\)`, "[{Positive [{0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} { Alignment []}]} {Negative [{( Literal []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} {) Literal []}]}]"}, + {`0.0_ `, "[{Positive [{0 ZeroPlaceHolder []} {. DecimalPoint []} {0 ZeroPlaceHolder []} { Alignment []}]}]"}, {`00.00.00.000`, "[{Positive [{00 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} {. DecimalPoint []} {000 ZeroPlaceHolder []}]}]"}, {`00.000%`, "[{Positive [{00 ZeroPlaceHolder []} {. DecimalPoint []} {000 ZeroPlaceHolder []} {% Percent []}]}]"}, {`0000`, "[{Positive [{0000 ZeroPlaceHolder []}]}]"}, @@ -212,8 +212,8 @@ var testStrings [][]string = [][]string{ {`000\-00\-0000`, "[{Positive [{000 ZeroPlaceHolder []} {- Literal []} {00 ZeroPlaceHolder []} {- Literal []} {0000 ZeroPlaceHolder []}]}]"}, {`0;[Red]0`, "[{Positive [{0 ZeroPlaceHolder []}]} {Negative [{Red Color []} {0 ZeroPlaceHolder []}]}]"}, {`0\-00000\-00000\-0`, "[{Positive [{0 ZeroPlaceHolder []} {- Literal []} {00000 ZeroPlaceHolder []} {- Literal []} {00000 ZeroPlaceHolder []} {- Literal []} {0 ZeroPlaceHolder []}]}]"}, - {`0_);[Red]\(0\)`, "[{Positive [{0 ZeroPlaceHolder []} {) Alignment []}]} {Negative [{Red Color []} {( Literal []} {0 ZeroPlaceHolder []} {) Literal []}]}]"}, - {`0_);\(0\)`, "[{Positive [{0 ZeroPlaceHolder []} {) Alignment []}]} {Negative [{( Literal []} {0 ZeroPlaceHolder []} {) Literal []}]}]"}, + {`0_);[Red]\(0\)`, "[{Positive [{0 ZeroPlaceHolder []} { Alignment []}]} {Negative [{Red Color []} {( Literal []} {0 ZeroPlaceHolder []} {) Literal []}]}]"}, + {`0_);\(0\)`, "[{Positive [{0 ZeroPlaceHolder []} { Alignment []}]} {Negative [{( Literal []} {0 ZeroPlaceHolder []} {) Literal []}]}]"}, {`A/P`, "[{Positive [{A/P DateTimes []}]}]"}, {`AM/PM`, "[{Positive [{AM/PM DateTimes []}]}]"}, {`AM/PMh"時"mm"分"ss"秒";@`, "[{Positive [{AM/PM DateTimes []} {h DateTimes []} {時 Literal []} {mm DateTimes []} {分 Literal []} {ss DateTimes []} {秒 Literal []}]} {Text [{@ TextPlaceHolder []}]}]"}, @@ -254,7 +254,7 @@ var testStrings [][]string = [][]string{ {`YYYY\-MM\-DD`, "[{Positive [{YYYY DateTimes []} {- Literal []} {MM DateTimes []} {- Literal []} {DD DateTimes []}]}]"}, {`[$$-409]#,##0`, "[{Positive [{[$$-409] CurrencyLanguage [{{$ CurrencyString []} } {{409 LanguageInfo []} }]} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []}]}]"}, {`[$$-409]#,##0.00`, "[{Positive [{[$$-409] CurrencyLanguage [{{$ CurrencyString []} } {{409 LanguageInfo []} }]} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []}]}]"}, - {`[$$-409]#,##0.00_);[Red]\([$$-409]#,##0.00\)`, "[{Positive [{[$$-409] CurrencyLanguage [{{$ CurrencyString []} } {{409 LanguageInfo []} }]} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} {) Alignment []}]} {Negative [{Red Color []} {( Literal []} {[$$-409] CurrencyLanguage [{{$ CurrencyString []} } {{409 LanguageInfo []} }]} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} {) Literal []}]}]"}, + {`[$$-409]#,##0.00_);[Red]\([$$-409]#,##0.00\)`, "[{Positive [{[$$-409] CurrencyLanguage [{{$ CurrencyString []} } {{409 LanguageInfo []} }]} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} { Alignment []}]} {Negative [{Red Color []} {( Literal []} {[$$-409] CurrencyLanguage [{{$ CurrencyString []} } {{409 LanguageInfo []} }]} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} {) Literal []}]}]"}, {`[$$-C09]#,##0.00`, "[{Positive [{[$$-C09] CurrencyLanguage [{{$ CurrencyString []} } {{C09 LanguageInfo []} }]} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []}]}]"}, {`[$-100042A]h:mm:ss\ AM/PM;@`, "[{Positive [{[$-100042A] CurrencyLanguage [{{100042A LanguageInfo []} }]} {h DateTimes []} {: Literal []} {mm DateTimes []} {: Literal []} {ss DateTimes []} { Literal []} {AM/PM DateTimes []}]} {Text [{@ TextPlaceHolder []}]}]"}, {`[$-1010409]0.000%`, "[{Positive [{[$-1010409] CurrencyLanguage [{{1010409 LanguageInfo []} }]} {0 ZeroPlaceHolder []} {. DecimalPoint []} {000 ZeroPlaceHolder []} {% Percent []}]}]"}, @@ -294,7 +294,7 @@ var testStrings [][]string = [][]string{ {`[$-F800]dddd\,\ mmmm\ dd\,\ yyyy`, "[{Positive [{[$-F800] CurrencyLanguage [{{F800 LanguageInfo []} }]} {dddd DateTimes []} {, Literal []} { Literal []} {mmmm DateTimes []} { Literal []} {dd DateTimes []} {, Literal []} { Literal []} {yyyy DateTimes []}]}]"}, {`[$AUD]\ #,##0.00`, "[{Positive [{[$AUD] CurrencyLanguage [{{AUD CurrencyString []} }]} { Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []}]}]"}, {`[$RD$-1C0A]#,##0.00;[Red]\-[$RD$-1C0A]#,##0.00`, "[{Positive [{[$RD$-1C0A] CurrencyLanguage [{{RD$ CurrencyString []} } {{1C0A LanguageInfo []} }]} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []}]} {Negative [{Red Color []} {- Literal []} {[$RD$-1C0A] CurrencyLanguage [{{RD$ CurrencyString []} } {{1C0A LanguageInfo []} }]} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []}]}]"}, - {`[$SFr.-810]\ #,##0.00_);[Red]\([$SFr.-810]\ #,##0.00\)`, "[{Positive [{[$SFr.-810] CurrencyLanguage [{{SFr. CurrencyString []} } {{810 LanguageInfo []} }]} { Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} {) Alignment []}]} {Negative [{Red Color []} {( Literal []} {[$SFr.-810] CurrencyLanguage [{{SFr. CurrencyString []} } {{810 LanguageInfo []} }]} { Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} {) Literal []}]}]"}, + {`[$SFr.-810]\ #,##0.00_);[Red]\([$SFr.-810]\ #,##0.00\)`, "[{Positive [{[$SFr.-810] CurrencyLanguage [{{SFr. CurrencyString []} } {{810 LanguageInfo []} }]} { Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} { Alignment []}]} {Negative [{Red Color []} {( Literal []} {[$SFr.-810] CurrencyLanguage [{{SFr. CurrencyString []} } {{810 LanguageInfo []} }]} { Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} {) Literal []}]}]"}, {`[$£-809]#,##0.00;[Red][$£-809]#,##0.00`, "[{Positive [{[$£-809] CurrencyLanguage [{{£ CurrencyString []} } {{809 LanguageInfo []} }]} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []}]} {Negative [{Red Color []} {[$£-809] CurrencyLanguage [{{£ CurrencyString []} } {{809 LanguageInfo []} }]} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []}]}]"}, {`[$¥-411]#,##0.00`, "[{Positive [{[$¥-411] CurrencyLanguage [{{¥ CurrencyString []} } {{411 LanguageInfo []} }]} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []}]}]"}, {`[$¥-804]#,##0.00`, "[{Positive [{[$¥-804] CurrencyLanguage [{{¥ CurrencyString []} } {{804 LanguageInfo []} }]} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []}]}]"}, @@ -399,7 +399,7 @@ var testStrings [][]string = [][]string{ {`[s]`, "[{Positive [{s ElapsedDateTimes []}]}]"}, {`[ss]`, "[{Positive [{ss ElapsedDateTimes []}]}]"}, {`\#\r\e\c`, "[{Positive [{# Literal []} {r Literal []} {e Literal []} {c Literal []}]}]"}, - {`\$#,##0_);[Red]"($"#,##0\)`, "[{Positive [{$ Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {) Alignment []}]} {Negative [{Red Color []} {($ Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {) Literal []}]}]"}, + {`\$#,##0_);[Red]"($"#,##0\)`, "[{Positive [{$ Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} { Alignment []}]} {Negative [{Red Color []} {($ Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {) Literal []}]}]"}, {`\$0.00`, "[{Positive [{$ Literal []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []}]}]"}, {`\C\O\B\ \o\n\ @`, "[{Text [{C Literal []} {O Literal []} {B Literal []} { Literal []} {o Literal []} {n Literal []} { Literal []} {@ TextPlaceHolder []}]}]"}, {`\C\R\O\N\T\A\B\ \o\n\ @`, "[{Text [{C Literal []} {R Literal []} {O Literal []} {N Literal []} {T Literal []} {A Literal []} {B Literal []} { Literal []} {o Literal []} {n Literal []} { Literal []} {@ TextPlaceHolder []}]}]"}, @@ -408,30 +408,30 @@ var testStrings [][]string = [][]string{ {`\S\Q\L\ \R\e\q\u\e\s\t\ \f\o\r\ @`, "[{Text [{S Literal []} {Q Literal []} {L Literal []} { Literal []} {R Literal []} {e Literal []} {q Literal []} {u Literal []} {e Literal []} {s Literal []} {t Literal []} { Literal []} {f Literal []} {o Literal []} {r Literal []} { Literal []} {@ TextPlaceHolder []}]}]"}, {`\c\c\c?????0"aaaa"0"bbbb"000000.00%`, "[{Positive [{c Literal []} {c Literal []} {c Literal []} {????? DigitalPlaceHolder []} {0 ZeroPlaceHolder []} {aaaa Literal []} {0 ZeroPlaceHolder []} {bbbb Literal []} {000000 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} {% Percent []}]}]"}, {`\u\n\t\i\l\ h:mm;@`, "[{Positive [{u Literal []} {n Literal []} {t Literal []} {i Literal []} {l Literal []} { Literal []} {h DateTimes []} {: Literal []} {mm DateTimes []}]} {Text [{@ TextPlaceHolder []}]}]"}, - {`_ "¥"* #,##0.00_ "Positive";_ "¥"* \-#,##0.00_ ;_ "¥"* "-"??_ "Negative";_ @_ \ "Zero"`, "[{Positive [{¥ Literal []} { RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} {Positive Literal []}]} {Negative [{¥ Literal []} { RepeatsChar []} {- Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []}]} {Zero [{¥ Literal []} { RepeatsChar []} {- Literal []} {?? DigitalPlaceHolder []} {Negative Literal []}]} {Text [{@ TextPlaceHolder []} { Literal []} {Zero Literal []}]}]"}, - {"_ * #,##0.00_)[$\uFDFC-429]_ ;_ * \\(#,##0.00\\)[$\uFDFC-429]_ ;_ * \"-\"??_)[$\uFDFC-429]_ ;_ @_ ", "[{Positive [{ RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} {) Alignment []} {[$\uFDFC-429] CurrencyLanguage [{{\uFDFC CurrencyString []} } {{429 LanguageInfo []} }]}]} {Negative [{ RepeatsChar []} {( Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} {) Literal []} {[$\uFDFC-429] CurrencyLanguage [{{\uFDFC CurrencyString []} } {{429 LanguageInfo []} }]}]} {Zero [{ RepeatsChar []} {- Literal []} {?? DigitalPlaceHolder []} {) Alignment []} {[$\uFDFC-429] CurrencyLanguage [{{\uFDFC CurrencyString []} } {{429 LanguageInfo []} }]}]} {Text [{@ TextPlaceHolder []}]}]"}, - {`_ * #,##0_ ;_ * \-#,##0_ ;[Red]_ * "-"_ ;_ @_ `, "[{Positive [{ RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []}]} {Negative [{ RepeatsChar []} {- Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []}]} {Zero [{Red Color []} { RepeatsChar []} {- Literal []}]} {Text [{@ TextPlaceHolder []}]}]"}, - {`_("$"* #,##0.00_);_("$"* \(#,##0.00\);_("$"* "-"??_);_(@_)`, "[{Positive [{( Alignment []} {$ Literal []} { RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} {) Alignment []}]} {Negative [{( Alignment []} {$ Literal []} { RepeatsChar []} {( Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} {) Literal []}]} {Zero [{( Alignment []} {$ Literal []} { RepeatsChar []} {- Literal []} {?? DigitalPlaceHolder []} {) Alignment []}]} {Text [{( Alignment []} {@ TextPlaceHolder []} {) Alignment []}]}]"}, - {`_("$"* #,##0_);_("$"* \(#,##0\);_("$"* "-"??_);_(@_)`, "[{Positive [{( Alignment []} {$ Literal []} { RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {) Alignment []}]} {Negative [{( Alignment []} {$ Literal []} { RepeatsChar []} {( Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {) Literal []}]} {Zero [{( Alignment []} {$ Literal []} { RepeatsChar []} {- Literal []} {?? DigitalPlaceHolder []} {) Alignment []}]} {Text [{( Alignment []} {@ TextPlaceHolder []} {) Alignment []}]}]"}, - {`_("$"* #,##0_);_("$"* \(#,##0\);_("$"* "-"_);_(@_)`, "[{Positive [{( Alignment []} {$ Literal []} { RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {) Alignment []}]} {Negative [{( Alignment []} {$ Literal []} { RepeatsChar []} {( Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {) Literal []}]} {Zero [{( Alignment []} {$ Literal []} { RepeatsChar []} {- Literal []} {) Alignment []}]} {Text [{( Alignment []} {@ TextPlaceHolder []} {) Alignment []}]}]"}, - {`_(* #,##0.0000_);_(* \(#,##0.0000\);_(* "-"??_);_(@_)`, "[{Positive [{ RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {0000 ZeroPlaceHolder []} {) Alignment []}]} {Negative [{ RepeatsChar []} {( Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {0000 ZeroPlaceHolder []} {) Literal []}]} {Zero [{ RepeatsChar []} {- Literal []} {?? DigitalPlaceHolder []} {) Alignment []}]} {Text [{( Alignment []} {@ TextPlaceHolder []} {) Alignment []}]}]"}, - {`_(* #,##0.000_);_(* \(#,##0.000\);_(* "-"??_);_(@_)`, "[{Positive [{ RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {000 ZeroPlaceHolder []} {) Alignment []}]} {Negative [{ RepeatsChar []} {( Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {000 ZeroPlaceHolder []} {) Literal []}]} {Zero [{ RepeatsChar []} {- Literal []} {?? DigitalPlaceHolder []} {) Alignment []}]} {Text [{( Alignment []} {@ TextPlaceHolder []} {) Alignment []}]}]"}, - {`_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)`, "[{Positive [{ RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} {) Alignment []}]} {Negative [{ RepeatsChar []} {( Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} {) Literal []}]} {Zero [{ RepeatsChar []} {- Literal []} {?? DigitalPlaceHolder []} {) Alignment []}]} {Text [{( Alignment []} {@ TextPlaceHolder []} {) Alignment []}]}]"}, - {`_(* #,##0.00_);_(* \(#,##0.00\);_(* "-"??_);_(@_)`, "[{Positive [{ RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} {) Alignment []}]} {Negative [{ RepeatsChar []} {( Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} {) Literal []}]} {Zero [{ RepeatsChar []} {- Literal []} {?? DigitalPlaceHolder []} {) Alignment []}]} {Text [{( Alignment []} {@ TextPlaceHolder []} {) Alignment []}]}]"}, - {`_(* #,##0.0_);_(* \(#,##0.0\);_(* "-"??_);_(@_)`, "[{Positive [{ RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {0 ZeroPlaceHolder []} {) Alignment []}]} {Negative [{ RepeatsChar []} {( Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {0 ZeroPlaceHolder []} {) Literal []}]} {Zero [{ RepeatsChar []} {- Literal []} {?? DigitalPlaceHolder []} {) Alignment []}]} {Text [{( Alignment []} {@ TextPlaceHolder []} {) Alignment []}]}]"}, - {`_(* #,##0_);_(* \(#,##0\);_(* "-"??_);_(@_)`, "[{Positive [{ RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {) Alignment []}]} {Negative [{ RepeatsChar []} {( Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {) Literal []}]} {Zero [{ RepeatsChar []} {- Literal []} {?? DigitalPlaceHolder []} {) Alignment []}]} {Text [{( Alignment []} {@ TextPlaceHolder []} {) Alignment []}]}]"}, - {`_(* #,##0_);_(* \(#,##0\);_(* "-"_);_(@_)`, "[{Positive [{ RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {) Alignment []}]} {Negative [{ RepeatsChar []} {( Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {) Literal []}]} {Zero [{ RepeatsChar []} {- Literal []} {) Alignment []}]} {Text [{( Alignment []} {@ TextPlaceHolder []} {) Alignment []}]}]"}, - {`_([$ANG]\ * #,##0.0_);_([$ANG]\ * \(#,##0.0\);_([$ANG]\ * "-"?_);_(@_)`, "[{Positive [{( Alignment []} {[$ANG] CurrencyLanguage [{{ANG CurrencyString []} }]} { Literal []} { RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {0 ZeroPlaceHolder []} {) Alignment []}]} {Negative [{( Alignment []} {[$ANG] CurrencyLanguage [{{ANG CurrencyString []} }]} { Literal []} { RepeatsChar []} {( Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {0 ZeroPlaceHolder []} {) Literal []}]} {Zero [{( Alignment []} {[$ANG] CurrencyLanguage [{{ANG CurrencyString []} }]} { Literal []} { RepeatsChar []} {- Literal []} {? DigitalPlaceHolder []} {) Alignment []}]} {Text [{( Alignment []} {@ TextPlaceHolder []} {) Alignment []}]}]"}, - {`_-"€"\ * #,##0.00_-;_-"€"\ * #,##0.00\-;_-"€"\ * "-"??_-;_-@_-`, "[{Positive [{€ Literal []} { Literal []} { RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []}]} {Negative [{€ Literal []} { Literal []} { RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} {- Literal []}]} {Zero [{€ Literal []} { Literal []} { RepeatsChar []} {- Literal []} {?? DigitalPlaceHolder []}]} {Text [{@ TextPlaceHolder []}]}]"}, - {`_-* #,##0.00" TL"_-;\-* #,##0.00" TL"_-;_-* \-??" TL"_-;_-@_-`, "[{Positive [{ RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} { TL Literal []}]} {Negative [{- Literal []} { RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} { TL Literal []}]} {Zero [{ RepeatsChar []} {- Literal []} {?? DigitalPlaceHolder []} { TL Literal []}]} {Text [{@ TextPlaceHolder []}]}]"}, - {`_-* #,##0.00" €"_-;\-* #,##0.00" €"_-;_-* \-??" €"_-;_-@_-`, "[{Positive [{ RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} { € Literal []}]} {Negative [{- Literal []} { RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} { € Literal []}]} {Zero [{ RepeatsChar []} {- Literal []} {?? DigitalPlaceHolder []} { € Literal []}]} {Text [{@ TextPlaceHolder []}]}]"}, - {`_-* #,##0.00\ "р."_-;\-* #,##0.00\ "р."_-;_-* "-"??\ "р."_-;_-@_-`, "[{Positive [{ RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} { Literal []} {р. Literal []}]} {Negative [{- Literal []} { RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} { Literal []} {р. Literal []}]} {Zero [{ RepeatsChar []} {- Literal []} {?? DigitalPlaceHolder []} { Literal []} {р. Literal []}]} {Text [{@ TextPlaceHolder []}]}]"}, - {`_-* #,##0.00\ "€"_-;\-* #,##0.00\ "€"_-;_-* "-"??\ "€"_-;_-@_-`, "[{Positive [{ RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} { Literal []} {€ Literal []}]} {Negative [{- Literal []} { RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} { Literal []} {€ Literal []}]} {Zero [{ RepeatsChar []} {- Literal []} {?? DigitalPlaceHolder []} { Literal []} {€ Literal []}]} {Text [{@ TextPlaceHolder []}]}]"}, - {`_-* #,##0.00\ [$€-407]_-;\-* #,##0.00\ [$€-407]_-;_-* \-??\ [$€-407]_-;_-@_-`, "[{Positive [{ RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} { Literal []} {[$€-407] CurrencyLanguage [{{€ CurrencyString []} } {{407 LanguageInfo []} }]}]} {Negative [{- Literal []} { RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} { Literal []} {[$€-407] CurrencyLanguage [{{€ CurrencyString []} } {{407 LanguageInfo []} }]}]} {Zero [{ RepeatsChar []} {- Literal []} {?? DigitalPlaceHolder []} { Literal []} {[$€-407] CurrencyLanguage [{{€ CurrencyString []} } {{407 LanguageInfo []} }]}]} {Text [{@ TextPlaceHolder []}]}]"}, - {`_-* #,##0.0\ _F_-;\-* #,##0.0\ _F_-;_-* "-"??\ _F_-;_-@_-`, "[{Positive [{ RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {0 ZeroPlaceHolder []} { Literal []}]} {Negative [{- Literal []} { RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {0 ZeroPlaceHolder []} { Literal []}]} {Zero [{ RepeatsChar []} {- Literal []} {?? DigitalPlaceHolder []} { Literal []}]} {Text [{@ TextPlaceHolder []}]}]"}, - {`_-* #,##0\ "€"_-;\-* #,##0\ "€"_-;_-* "-"\ "€"_-;_-@_-`, "[{Positive [{ RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} { Literal []} {€ Literal []}]} {Negative [{- Literal []} { RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} { Literal []} {€ Literal []}]} {Zero [{ RepeatsChar []} {- Literal []} { Literal []} {€ Literal []}]} {Text [{@ TextPlaceHolder []}]}]"}, - {`_-* #,##0_-;\-* #,##0_-;_-* "-"??_-;_-@_-`, "[{Positive [{ RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []}]} {Negative [{- Literal []} { RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []}]} {Zero [{ RepeatsChar []} {- Literal []} {?? DigitalPlaceHolder []}]} {Text [{@ TextPlaceHolder []}]}]"}, - {`_-\$* #,##0.0_ ;_-\$* \-#,##0.0\ ;_-\$* "-"?_ ;_-@_ `, "[{Positive [{$ Literal []} { RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {0 ZeroPlaceHolder []}]} {Negative [{$ Literal []} { RepeatsChar []} {- Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {0 ZeroPlaceHolder []} { Literal []}]} {Zero [{$ Literal []} { RepeatsChar []} {- Literal []} {? DigitalPlaceHolder []}]} {Text [{@ TextPlaceHolder []}]}]"}, + {`_ "¥"* #,##0.00_ "Positive";_ "¥"* \-#,##0.00_ ;_ "¥"* "-"??_ "Negative";_ @_ \ "Zero"`, "[{Positive [{ Alignment []} {¥ Literal []} { RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} { Alignment []} {Positive Literal []}]} {Negative [{ Alignment []} {¥ Literal []} { RepeatsChar []} {- Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} { Alignment []}]} {Zero [{ Alignment []} {¥ Literal []} { RepeatsChar []} {- Literal []} {?? DigitalPlaceHolder []} { Alignment []} {Negative Literal []}]} {Text [{ Alignment []} {@ TextPlaceHolder []} { Alignment []} { Literal []} {Zero Literal []}]}]"}, + {"_ * #,##0.00_)[$\uFDFC-429]_ ;_ * \\(#,##0.00\\)[$\uFDFC-429]_ ;_ * \"-\"??_)[$\uFDFC-429]_ ;_ @_ ", "[{Positive [{ Alignment []} { RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} { Alignment []} {[$\uFDFC-429] CurrencyLanguage [{{\uFDFC CurrencyString []} } {{429 LanguageInfo []} }]} { Alignment []}]} {Negative [{ Alignment []} { RepeatsChar []} {( Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} {) Literal []} {[$\uFDFC-429] CurrencyLanguage [{{\uFDFC CurrencyString []} } {{429 LanguageInfo []} }]} { Alignment []}]} {Zero [{ Alignment []} { RepeatsChar []} {- Literal []} {?? DigitalPlaceHolder []} { Alignment []} {[$\uFDFC-429] CurrencyLanguage [{{\uFDFC CurrencyString []} } {{429 LanguageInfo []} }]} { Alignment []}]} {Text [{ Alignment []} {@ TextPlaceHolder []} { Alignment []}]}]"}, + {`_ * #,##0_ ;_ * \-#,##0_ ;[Red]_ * "-"_ ;_ @_ `, "[{Positive [{ Alignment []} { RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} { Alignment []}]} {Negative [{ Alignment []} { RepeatsChar []} {- Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} { Alignment []}]} {Zero [{Red Color []} { Alignment []} { RepeatsChar []} {- Literal []} { Alignment []}]} {Text [{ Alignment []} {@ TextPlaceHolder []} { Alignment []}]}]"}, + {`_("$"* #,##0.00_);_("$"* \(#,##0.00\);_("$"* "-"??_);_(@_)`, "[{Positive [{ Alignment []} {$ Literal []} { RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} { Alignment []}]} {Negative [{ Alignment []} {$ Literal []} { RepeatsChar []} {( Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} {) Literal []}]} {Zero [{ Alignment []} {$ Literal []} { RepeatsChar []} {- Literal []} {?? DigitalPlaceHolder []} { Alignment []}]} {Text [{ Alignment []} {@ TextPlaceHolder []} { Alignment []}]}]"}, + {`_("$"* #,##0_);_("$"* \(#,##0\);_("$"* "-"??_);_(@_)`, "[{Positive [{ Alignment []} {$ Literal []} { RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} { Alignment []}]} {Negative [{ Alignment []} {$ Literal []} { RepeatsChar []} {( Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {) Literal []}]} {Zero [{ Alignment []} {$ Literal []} { RepeatsChar []} {- Literal []} {?? DigitalPlaceHolder []} { Alignment []}]} {Text [{ Alignment []} {@ TextPlaceHolder []} { Alignment []}]}]"}, + {`_("$"* #,##0_);_("$"* \(#,##0\);_("$"* "-"_);_(@_)`, "[{Positive [{ Alignment []} {$ Literal []} { RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} { Alignment []}]} {Negative [{ Alignment []} {$ Literal []} { RepeatsChar []} {( Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {) Literal []}]} {Zero [{ Alignment []} {$ Literal []} { RepeatsChar []} {- Literal []} { Alignment []}]} {Text [{ Alignment []} {@ TextPlaceHolder []} { Alignment []}]}]"}, + {`_(* #,##0.0000_);_(* \(#,##0.0000\);_(* "-"??_);_(@_)`, "[{Positive [{ Alignment []} { RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {0000 ZeroPlaceHolder []} { Alignment []}]} {Negative [{ Alignment []} { RepeatsChar []} {( Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {0000 ZeroPlaceHolder []} {) Literal []}]} {Zero [{ Alignment []} { RepeatsChar []} {- Literal []} {?? DigitalPlaceHolder []} { Alignment []}]} {Text [{ Alignment []} {@ TextPlaceHolder []} { Alignment []}]}]"}, + {`_(* #,##0.000_);_(* \(#,##0.000\);_(* "-"??_);_(@_)`, "[{Positive [{ Alignment []} { RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {000 ZeroPlaceHolder []} { Alignment []}]} {Negative [{ Alignment []} { RepeatsChar []} {( Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {000 ZeroPlaceHolder []} {) Literal []}]} {Zero [{ Alignment []} { RepeatsChar []} {- Literal []} {?? DigitalPlaceHolder []} { Alignment []}]} {Text [{ Alignment []} {@ TextPlaceHolder []} { Alignment []}]}]"}, + {`_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)`, "[{Positive [{ Alignment []} { RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} { Alignment []}]} {Negative [{ Alignment []} { RepeatsChar []} {( Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} {) Literal []}]} {Zero [{ Alignment []} { RepeatsChar []} {- Literal []} {?? DigitalPlaceHolder []} { Alignment []}]} {Text [{ Alignment []} {@ TextPlaceHolder []} { Alignment []}]}]"}, + {`_(* #,##0.00_);_(* \(#,##0.00\);_(* "-"??_);_(@_)`, "[{Positive [{ Alignment []} { RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} { Alignment []}]} {Negative [{ Alignment []} { RepeatsChar []} {( Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} {) Literal []}]} {Zero [{ Alignment []} { RepeatsChar []} {- Literal []} {?? DigitalPlaceHolder []} { Alignment []}]} {Text [{ Alignment []} {@ TextPlaceHolder []} { Alignment []}]}]"}, + {`_(* #,##0.0_);_(* \(#,##0.0\);_(* "-"??_);_(@_)`, "[{Positive [{ Alignment []} { RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {0 ZeroPlaceHolder []} { Alignment []}]} {Negative [{ Alignment []} { RepeatsChar []} {( Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {0 ZeroPlaceHolder []} {) Literal []}]} {Zero [{ Alignment []} { RepeatsChar []} {- Literal []} {?? DigitalPlaceHolder []} { Alignment []}]} {Text [{ Alignment []} {@ TextPlaceHolder []} { Alignment []}]}]"}, + {`_(* #,##0_);_(* \(#,##0\);_(* "-"??_);_(@_)`, "[{Positive [{ Alignment []} { RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} { Alignment []}]} {Negative [{ Alignment []} { RepeatsChar []} {( Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {) Literal []}]} {Zero [{ Alignment []} { RepeatsChar []} {- Literal []} {?? DigitalPlaceHolder []} { Alignment []}]} {Text [{ Alignment []} {@ TextPlaceHolder []} { Alignment []}]}]"}, + {`_(* #,##0_);_(* \(#,##0\);_(* "-"_);_(@_)`, "[{Positive [{ Alignment []} { RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} { Alignment []}]} {Negative [{ Alignment []} { RepeatsChar []} {( Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {) Literal []}]} {Zero [{ Alignment []} { RepeatsChar []} {- Literal []} { Alignment []}]} {Text [{ Alignment []} {@ TextPlaceHolder []} { Alignment []}]}]"}, + {`_([$ANG]\ * #,##0.0_);_([$ANG]\ * \(#,##0.0\);_([$ANG]\ * "-"?_);_(@_)`, "[{Positive [{ Alignment []} {[$ANG] CurrencyLanguage [{{ANG CurrencyString []} }]} { Literal []} { RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {0 ZeroPlaceHolder []} { Alignment []}]} {Negative [{ Alignment []} {[$ANG] CurrencyLanguage [{{ANG CurrencyString []} }]} { Literal []} { RepeatsChar []} {( Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {0 ZeroPlaceHolder []} {) Literal []}]} {Zero [{ Alignment []} {[$ANG] CurrencyLanguage [{{ANG CurrencyString []} }]} { Literal []} { RepeatsChar []} {- Literal []} {? DigitalPlaceHolder []} { Alignment []}]} {Text [{ Alignment []} {@ TextPlaceHolder []} { Alignment []}]}]"}, + {`_-"€"\ * #,##0.00_-;_-"€"\ * #,##0.00\-;_-"€"\ * "-"??_-;_-@_-`, "[{Positive [{ Alignment []} {€ Literal []} { Literal []} { RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} { Alignment []}]} {Negative [{ Alignment []} {€ Literal []} { Literal []} { RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} {- Literal []}]} {Zero [{ Alignment []} {€ Literal []} { Literal []} { RepeatsChar []} {- Literal []} {?? DigitalPlaceHolder []} { Alignment []}]} {Text [{ Alignment []} {@ TextPlaceHolder []} { Alignment []}]}]"}, + {`_-* #,##0.00" TL"_-;\-* #,##0.00" TL"_-;_-* \-??" TL"_-;_-@_-`, "[{Positive [{ Alignment []} { RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} { TL Literal []} { Alignment []}]} {Negative [{- Literal []} { RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} { TL Literal []} { Alignment []}]} {Zero [{ Alignment []} { RepeatsChar []} {- Literal []} {?? DigitalPlaceHolder []} { TL Literal []} { Alignment []}]} {Text [{ Alignment []} {@ TextPlaceHolder []} { Alignment []}]}]"}, + {`_-* #,##0.00" €"_-;\-* #,##0.00" €"_-;_-* \-??" €"_-;_-@_-`, "[{Positive [{ Alignment []} { RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} { € Literal []} { Alignment []}]} {Negative [{- Literal []} { RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} { € Literal []} { Alignment []}]} {Zero [{ Alignment []} { RepeatsChar []} {- Literal []} {?? DigitalPlaceHolder []} { € Literal []} { Alignment []}]} {Text [{ Alignment []} {@ TextPlaceHolder []} { Alignment []}]}]"}, + {`_-* #,##0.00\ "р."_-;\-* #,##0.00\ "р."_-;_-* "-"??\ "р."_-;_-@_-`, "[{Positive [{ Alignment []} { RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} { Literal []} {р. Literal []} { Alignment []}]} {Negative [{- Literal []} { RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} { Literal []} {р. Literal []} { Alignment []}]} {Zero [{ Alignment []} { RepeatsChar []} {- Literal []} {?? DigitalPlaceHolder []} { Literal []} {р. Literal []} { Alignment []}]} {Text [{ Alignment []} {@ TextPlaceHolder []} { Alignment []}]}]"}, + {`_-* #,##0.00\ "€"_-;\-* #,##0.00\ "€"_-;_-* "-"??\ "€"_-;_-@_-`, "[{Positive [{ Alignment []} { RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} { Literal []} {€ Literal []} { Alignment []}]} {Negative [{- Literal []} { RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} { Literal []} {€ Literal []} { Alignment []}]} {Zero [{ Alignment []} { RepeatsChar []} {- Literal []} {?? DigitalPlaceHolder []} { Literal []} {€ Literal []} { Alignment []}]} {Text [{ Alignment []} {@ TextPlaceHolder []} { Alignment []}]}]"}, + {`_-* #,##0.00\ [$€-407]_-;\-* #,##0.00\ [$€-407]_-;_-* \-??\ [$€-407]_-;_-@_-`, "[{Positive [{ Alignment []} { RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} { Literal []} {[$€-407] CurrencyLanguage [{{€ CurrencyString []} } {{407 LanguageInfo []} }]} { Alignment []}]} {Negative [{- Literal []} { RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []} { Literal []} {[$€-407] CurrencyLanguage [{{€ CurrencyString []} } {{407 LanguageInfo []} }]} { Alignment []}]} {Zero [{ Alignment []} { RepeatsChar []} {- Literal []} {?? DigitalPlaceHolder []} { Literal []} {[$€-407] CurrencyLanguage [{{€ CurrencyString []} } {{407 LanguageInfo []} }]} { Alignment []}]} {Text [{ Alignment []} {@ TextPlaceHolder []} { Alignment []}]}]"}, + {`_-* #,##0.0\ _F_-;\-* #,##0.0\ _F_-;_-* "-"??\ _F_-;_-@_-`, "[{Positive [{ Alignment []} { RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {0 ZeroPlaceHolder []} { Literal []} { Alignment []} { Alignment []}]} {Negative [{- Literal []} { RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {0 ZeroPlaceHolder []} { Literal []} { Alignment []} { Alignment []}]} {Zero [{ Alignment []} { RepeatsChar []} {- Literal []} {?? DigitalPlaceHolder []} { Literal []} { Alignment []} { Alignment []}]} {Text [{ Alignment []} {@ TextPlaceHolder []} { Alignment []}]}]"}, + {`_-* #,##0\ "€"_-;\-* #,##0\ "€"_-;_-* "-"\ "€"_-;_-@_-`, "[{Positive [{ Alignment []} { RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} { Literal []} {€ Literal []} { Alignment []}]} {Negative [{- Literal []} { RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} { Literal []} {€ Literal []} { Alignment []}]} {Zero [{ Alignment []} { RepeatsChar []} {- Literal []} { Literal []} {€ Literal []} { Alignment []}]} {Text [{ Alignment []} {@ TextPlaceHolder []} { Alignment []}]}]"}, + {`_-* #,##0_-;\-* #,##0_-;_-* "-"??_-;_-@_-`, "[{Positive [{ Alignment []} { RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} { Alignment []}]} {Negative [{- Literal []} { RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} { Alignment []}]} {Zero [{ Alignment []} { RepeatsChar []} {- Literal []} {?? DigitalPlaceHolder []} { Alignment []}]} {Text [{ Alignment []} {@ TextPlaceHolder []} { Alignment []}]}]"}, + {`_-\$* #,##0.0_ ;_-\$* \-#,##0.0\ ;_-\$* "-"?_ ;_-@_ `, "[{Positive [{ Alignment []} {$ Literal []} { RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {0 ZeroPlaceHolder []} { Alignment []}]} {Negative [{ Alignment []} {$ Literal []} { RepeatsChar []} {- Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {0 ZeroPlaceHolder []} { Literal []}]} {Zero [{ Alignment []} {$ Literal []} { RepeatsChar []} {- Literal []} {? DigitalPlaceHolder []} { Alignment []}]} {Text [{ Alignment []} {@ TextPlaceHolder []} { Alignment []}]}]"}, {`d`, "[{Positive [{d DateTimes []}]}]"}, {`d-mmm`, "[{Positive [{d DateTimes []} {- Literal []} {mmm DateTimes []}]}]"}, {`d-mmm-yy`, "[{Positive [{d DateTimes []} {- Literal []} {mmm DateTimes []} {- Literal []} {yy DateTimes []}]}]"}, @@ -527,6 +527,7 @@ var testStrings [][]string = [][]string{ {`yyyy\-mm\-dd\Thhmmss.000`, "[{Positive [{yyyy DateTimes []} {- Literal []} {mm DateTimes []} {- Literal []} {dd DateTimes []} {T Literal []} {hh DateTimes []} {mm DateTimes []} {ss DateTimes []} {. DecimalPoint []} {000 ZeroPlaceHolder []}]}]"}, {`[DBNum1][$-zh-CN]h"时"mm"分";"====="@@@"--"@"----"`, "[{Positive [{[DBNum1] SwitchArgument []} {[$-zh-CN] CurrencyLanguage [{{zh-CN LanguageInfo []} }]} {h DateTimes []} {时 Literal []} {mm DateTimes []} {分 Literal []}]} {Text [{===== Literal []} {@ TextPlaceHolder []} {@ TextPlaceHolder []} {@ TextPlaceHolder []} {-- Literal []} {@ TextPlaceHolder []} {---- Literal []}]}]"}, {"[$ZWR]\\ #,##0.00", "[{Positive [{[$ZWR] CurrencyLanguage [{{ZWR CurrencyString []} }]} { Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {. DecimalPoint []} {00 ZeroPlaceHolder []}]}]"}, + {`_(* #,##0_);_(* \(#,##0\);_(* "-"_);_(@_)`, "[{Positive [{ Alignment []} { RepeatsChar []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} { Alignment []}]} {Negative [{ Alignment []} { RepeatsChar []} {( Literal []} {# HashPlaceHolder []} {, ThousandsSeparator []} {## HashPlaceHolder []} {0 ZeroPlaceHolder []} {) Literal []}]} {Zero [{ Alignment []} { RepeatsChar []} {- Literal []} { Alignment []}]} {Text [{ Alignment []} {@ TextPlaceHolder []} { Alignment []}]}]"}, } func TestNFP(t *testing.T) {