Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef PaymentsValidators_h | |
| 6 #define PaymentsValidators_h | |
| 7 | |
| 8 #include "modules/ModulesExport.h" | |
| 9 #include "wtf/text/WTFString.h" | |
| 10 | |
| 11 namespace blink { | |
|
haraken
2016/03/30 01:23:40
Maybe we want to put these methods in a static cla
please use gerrit instead
2016/03/30 15:53:35
Done. Placed these into PaymentsValidators class.
| |
| 12 | |
| 13 // Returns true if |code| is a valid ISO 4217 currency code. | |
| 14 bool MODULES_EXPORT isValidCurrencyCodeFormat(const String& code, String* option alErrorMessage); | |
| 15 | |
| 16 // Returns true if |amount| is a valid currency code as defined in ISO 20022 Cur rencyAnd30Amount. | |
| 17 bool MODULES_EXPORT isValidAmountFormat(const String& amount, String* optionalEr rorMessage); | |
| 18 | |
| 19 // Returns true if |code| is a valid ISO 3166 country code. | |
| 20 bool MODULES_EXPORT isValidRegionCodeFormat(const String& code, String* optional ErrorMessage); | |
| 21 | |
| 22 // Returns true if |code| is a valid ISO 639 language code. | |
| 23 bool MODULES_EXPORT isValidLanguageCodeFormat(const String& code, String* option alErrorMessage); | |
| 24 | |
| 25 // Returns true if |code| is a valid ISO 1524 script code. | |
| 26 bool MODULES_EXPORT isValidScriptCodeFormat(const String& code, String* optional ErrorMessage); | |
| 27 | |
| 28 } // namespace blink | |
| 29 | |
| 30 #endif // PaymentsValidators_h | |
| OLD | NEW |