Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Side by Side Diff: third_party/WebKit/Source/modules/payments/PaymentsValidators.h

Issue 1881113002: Fix references to ISO 15924 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove include changes Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/payments/PaymentsValidators.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PaymentsValidators_h 5 #ifndef PaymentsValidators_h
6 #define PaymentsValidators_h 6 #define PaymentsValidators_h
7 7
8 #include "modules/ModulesExport.h" 8 #include "modules/ModulesExport.h"
9 #include "wtf/Allocator.h" 9 #include "wtf/Allocator.h"
10 #include "wtf/text/WTFString.h" 10 #include "wtf/text/WTFString.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class MODULES_EXPORT PaymentsValidators final { 14 class MODULES_EXPORT PaymentsValidators final {
15 STATIC_ONLY(PaymentsValidators); 15 STATIC_ONLY(PaymentsValidators);
16 16
17 public: 17 public:
18 // Returns true if |code| is a valid ISO 4217 currency code. 18 // Returns true if |code| is a valid ISO 4217 currency code.
19 static bool isValidCurrencyCodeFormat(const String& code, String* optionalEr rorMessage); 19 static bool isValidCurrencyCodeFormat(const String& code, String* optionalEr rorMessage);
20 20
21 // Returns true if |amount| is a valid currency code as defined in ISO 20022 CurrencyAnd30Amount. 21 // Returns true if |amount| is a valid currency code as defined in ISO 20022 CurrencyAnd30Amount.
22 static bool isValidAmountFormat(const String& amount, String* optionalErrorM essage); 22 static bool isValidAmountFormat(const String& amount, String* optionalErrorM essage);
23 23
24 // Returns true if |code| is a valid ISO 3166 country code. 24 // Returns true if |code| is a valid ISO 3166 country code.
25 static bool isValidRegionCodeFormat(const String& code, String* optionalErro rMessage); 25 static bool isValidRegionCodeFormat(const String& code, String* optionalErro rMessage);
26 26
27 // Returns true if |code| is a valid ISO 639 language code. 27 // Returns true if |code| is a valid ISO 639 language code.
28 static bool isValidLanguageCodeFormat(const String& code, String* optionalEr rorMessage); 28 static bool isValidLanguageCodeFormat(const String& code, String* optionalEr rorMessage);
29 29
30 // Returns true if |code| is a valid ISO 1524 script code. 30 // Returns true if |code| is a valid ISO 15924 script code.
31 static bool isValidScriptCodeFormat(const String& code, String* optionalErro rMessage); 31 static bool isValidScriptCodeFormat(const String& code, String* optionalErro rMessage);
32 }; 32 };
33 33
34 } // namespace blink 34 } // namespace blink
35 35
36 #endif // PaymentsValidators_h 36 #endif // PaymentsValidators_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/payments/PaymentsValidators.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698