| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 // HTML floating-point number format. The input string is provided by a end | 60 // HTML floating-point number format. The input string is provided by a end |
| 61 // user, and might not be a number string. It's ok that the function returns | 61 // user, and might not be a number string. It's ok that the function returns |
| 62 // a string which is not conforms to the HTML floating-point number format, | 62 // a string which is not conforms to the HTML floating-point number format, |
| 63 // callers of this function are responsible to check the format of the | 63 // callers of this function are responsible to check the format of the |
| 64 // resultant string. | 64 // resultant string. |
| 65 String convertFromLocalizedNumber(const String&); | 65 String convertFromLocalizedNumber(const String&); |
| 66 | 66 |
| 67 // Remove characters from |input| if a character is not included in | 67 // Remove characters from |input| if a character is not included in |
| 68 // locale-specific number characters and |standardChars|. | 68 // locale-specific number characters and |standardChars|. |
| 69 String stripInvalidNumberCharacters(const String& input, | 69 String stripInvalidNumberCharacters(const String& input, |
| 70 const String& standardChars) const; | 70 const String& standardChars); |
| 71 | 71 |
| 72 // Returns localized decimal separator, e.g. "." for English, "," for French. | 72 // Returns localized decimal separator, e.g. "." for English, "," for French. |
| 73 String localizedDecimalSeparator(); | 73 String localizedDecimalSeparator(); |
| 74 | 74 |
| 75 // Returns date format in Unicode TR35 LDML[1] containing day of month, | 75 // Returns date format in Unicode TR35 LDML[1] containing day of month, |
| 76 // month, and year, e.g. "dd/mm/yyyy" | 76 // month, and year, e.g. "dd/mm/yyyy" |
| 77 // [1] LDML http://unicode.org/reports/tr35/#Date_Format_Patterns | 77 // [1] LDML http://unicode.org/reports/tr35/#Date_Format_Patterns |
| 78 virtual String dateFormat() = 0; | 78 virtual String dateFormat() = 0; |
| 79 | 79 |
| 80 // Returns a year-month format in Unicode TR35 LDML. | 80 // Returns a year-month format in Unicode TR35 LDML. |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 String m_positivePrefix; | 177 String m_positivePrefix; |
| 178 String m_positiveSuffix; | 178 String m_positiveSuffix; |
| 179 String m_negativePrefix; | 179 String m_negativePrefix; |
| 180 String m_negativeSuffix; | 180 String m_negativeSuffix; |
| 181 String m_acceptableNumberCharacters; | 181 String m_acceptableNumberCharacters; |
| 182 bool m_hasLocaleData; | 182 bool m_hasLocaleData; |
| 183 }; | 183 }; |
| 184 | 184 |
| 185 } // namespace blink | 185 } // namespace blink |
| 186 #endif | 186 #endif |
| OLD | NEW |