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 26 matching lines...) Expand all Loading... |
37 class PLATFORM_EXPORT Locale { | 37 class PLATFORM_EXPORT Locale { |
38 WTF_MAKE_NONCOPYABLE(Locale); | 38 WTF_MAKE_NONCOPYABLE(Locale); |
39 public: | 39 public: |
40 static PassOwnPtr<Locale> create(const String& localeIdentifier); | 40 static PassOwnPtr<Locale> create(const String& localeIdentifier); |
41 static Locale& defaultLocale(); | 41 static Locale& defaultLocale(); |
42 | 42 |
43 String queryString(blink::WebLocalizedString::Name); | 43 String queryString(blink::WebLocalizedString::Name); |
44 String queryString(blink::WebLocalizedString::Name, const String& parameter)
; | 44 String queryString(blink::WebLocalizedString::Name, const String& parameter)
; |
45 String queryString(blink::WebLocalizedString::Name, const String& parameter1
, const String& parameter2); | 45 String queryString(blink::WebLocalizedString::Name, const String& parameter1
, const String& parameter2); |
46 String validationMessageTooLongText(unsigned valueLength, int maxLength); | 46 String validationMessageTooLongText(unsigned valueLength, int maxLength); |
| 47 String validationMessageTooShortText(unsigned valueLength, int minLength); |
47 | 48 |
48 // Converts the specified number string to another number string localized | 49 // Converts the specified number string to another number string localized |
49 // for this Locale locale. The input string must conform to HTML | 50 // for this Locale locale. The input string must conform to HTML |
50 // floating-point numbers, and is not empty. | 51 // floating-point numbers, and is not empty. |
51 String convertToLocalizedNumber(const String&); | 52 String convertToLocalizedNumber(const String&); |
52 | 53 |
53 // Converts the specified localized number string to a number string in the | 54 // Converts the specified localized number string to a number string in the |
54 // HTML floating-point number format. The input string is provided by a end | 55 // HTML floating-point number format. The input string is provided by a end |
55 // user, and might not be a number string. It's ok that the function returns | 56 // user, and might not be a number string. It's ok that the function returns |
56 // a string which is not conforms to the HTML floating-point number format, | 57 // a string which is not conforms to the HTML floating-point number format, |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 String m_decimalSymbols[DecimalSymbolsSize]; | 160 String m_decimalSymbols[DecimalSymbolsSize]; |
160 String m_positivePrefix; | 161 String m_positivePrefix; |
161 String m_positiveSuffix; | 162 String m_positiveSuffix; |
162 String m_negativePrefix; | 163 String m_negativePrefix; |
163 String m_negativeSuffix; | 164 String m_negativeSuffix; |
164 bool m_hasLocaleData; | 165 bool m_hasLocaleData; |
165 }; | 166 }; |
166 | 167 |
167 } | 168 } |
168 #endif | 169 #endif |
OLD | NEW |