Lines Matching defs:code
2 // Use of this source code is governed by a BSD-style license that can be
105 static inline bool IsLeadSurrogate(int code) {
106 return (code & 0xfc00) == 0xd800;
108 static inline bool IsTrailSurrogate(int code) {
109 return (code & 0xfc00) == 0xdc00;
116 // Encoding a single UTF-16 code unit will produce 1, 2 or 3 bytes
168 static const uchar kIncomplete = 0xFFFFFFFC; // any non-valid code point.
179 // The maximum size a single UTF-16 code unit may take up when encoded as
189 // Excludes non-characters from the set of valid code points.
192 // Validate if the input has a valid utf-8 encoding. Unlike JS source code
193 // this validation function will accept any unicode code point, including
199 // - valid code point range.
222 // ES#sec-line-terminators lists exactly 4 code points: