OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project 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 V8_CHAR_PREDICATES_INL_H_ | 5 #ifndef V8_CHAR_PREDICATES_INL_H_ |
6 #define V8_CHAR_PREDICATES_INL_H_ | 6 #define V8_CHAR_PREDICATES_INL_H_ |
7 | 7 |
8 #include "char-predicates.h" | 8 #include "src/char-predicates.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
11 namespace internal { | 11 namespace internal { |
12 | 12 |
13 | 13 |
14 // If c is in 'A'-'Z' or 'a'-'z', return its lower-case. | 14 // If c is in 'A'-'Z' or 'a'-'z', return its lower-case. |
15 // Else, return something outside of 'A'-'Z' and 'a'-'z'. | 15 // Else, return something outside of 'A'-'Z' and 'a'-'z'. |
16 // Note: it ignores LOCALE. | 16 // Note: it ignores LOCALE. |
17 inline int AsciiAlphaToLower(uc32 c) { | 17 inline int AsciiAlphaToLower(uc32 c) { |
18 return c | 0x20; | 18 return c | 0x20; |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 return false; | 74 return false; |
75 default: | 75 default: |
76 return true; | 76 return true; |
77 } | 77 } |
78 } | 78 } |
79 | 79 |
80 | 80 |
81 } } // namespace v8::internal | 81 } } // namespace v8::internal |
82 | 82 |
83 #endif // V8_CHAR_PREDICATES_INL_H_ | 83 #endif // V8_CHAR_PREDICATES_INL_H_ |
OLD | NEW |