Lines Matching refs:twoByteString
141 let twoByteString = Buffer.from('\u039a\u0391\u03a3\u03a3\u0395', 'ucs2'); variable
143 assert(twoByteString.includes('\u0395', 4, 'ucs2'));
144 assert(twoByteString.includes('\u03a3', -4, 'ucs2'));
145 assert(twoByteString.includes('\u03a3', -6, 'ucs2'));
146 assert(twoByteString.includes(
148 assert(!twoByteString.includes('\u03a3', -2, 'ucs2'));
163 twoByteString = Buffer.from('\u039a\u0391\u03a3\u03a3\u0395', 'ucs2');
166 assert(twoByteString.includes('\u039a', 0, 'ucs2'));
167 assert(twoByteString.includes('\u0391', 0, 'ucs2'), 'Alpha');
168 assert(twoByteString.includes('\u03a3', 0, 'ucs2'), 'First Sigma');
169 assert(twoByteString.includes('\u03a3', 6, 'ucs2'), 'Second Sigma');
170 assert(twoByteString.includes('\u0395', 0, 'ucs2'), 'Epsilon');
171 assert(!twoByteString.includes('\u0392', 0, 'ucs2'), 'Not beta');
174 assert(twoByteString.includes('\u039a\u0391', 0, 'ucs2'), 'Lambda Alpha');
175 assert(twoByteString.includes('\u0391\u03a3', 0, 'ucs2'), 'Alpha Sigma');
176 assert(twoByteString.includes('\u03a3\u03a3', 0, 'ucs2'), 'Sigma Sigma');
177 assert(twoByteString.includes('\u03a3\u0395', 0, 'ucs2'), 'Sigma Epsilon');