Lines Matching full:code
21 * This file defines macros to deal with 16-bit Unicode (UTF-16) code units and strings.
42 /* single-code point definitions -------------------------------------------- */
45 * Does this code unit alone encode a code point (BMP, not a surrogate)?
46 * @param c 16-bit code unit
53 * Is this code unit a lead surrogate (U+d800..U+dbff)?
54 * @param c 16-bit code unit
61 * Is this code unit a trail surrogate (U+dc00..U+dfff)?
62 * @param c 16-bit code unit
69 * Is this code unit a surrogate (U+d800..U+dfff)?
70 * @param c 16-bit code unit
77 * Assuming c is a surrogate code point (U16_IS_SURROGATE(c)),
79 * @param c 16-bit code unit
86 * Assuming c is a surrogate code point (U16_IS_SURROGATE(c)),
88 * @param c 16-bit code unit
101 * Get a supplementary code point value (U+10000..U+10ffff)
108 * @return supplementary code point (U+10000..U+10ffff)
117 * supplementary code point (0x10000..0x10ffff).
118 * @param supplementary 32-bit code point (U+10000..U+10ffff)
126 * supplementary code point (0x10000..0x10ffff).
127 * @param supplementary 32-bit code point (U+10000..U+10ffff)
134 * How many 16-bit code units are used to encode this Unicode code point? (1 or 2)
135 * The result is not defined if c is not a Unicode code point (U+0000..U+10ffff).
136 * @param c 32-bit code point
143 * The maximum number of 16-bit code units per Unicode code point (U+0000..U+10ffff).
150 * Get a code point from a string at a random-access offset,
155 * for a supplementary code point, in which case the macro will read
178 * Get a code point from a string at a random-access offset,
183 * for a supplementary code point, in which case the macro will read
186 * will be returned as the code point.
216 * Get a code point from a string at a code point boundary offset,
217 * and advance the offset to the next code point boundary.
222 * for a supplementary code point, in which case the macro will read
225 * will be returned as the code point.
242 * Get a code point from a string at a code point boundary offset,
243 * and advance the offset to the next code point boundary.
248 * for a supplementary code point, in which case the macro will read
252 * will be returned as the code point.
273 * Append a code point to a string, overwriting 1 or 2 code units.
276 * "Unsafe" macro, assumes a valid code point and sufficient space in the string.
281 * @param c code point to append
295 * Append a code point to a string, overwriting 1 or 2 code units.
298 * "Safe" macro, checks for a valid code point.
300 * If the code point is not valid or a trail surrogate does not fit,
306 * @param c code point to append
323 * Advance the string offset from one code point boundary to the next.
339 * Advance the string offset from one code point boundary to the next.
356 * Advance the string offset from one code point boundary to the n-th next one,
357 * i.e., move forward by n code points.
363 * @param n number of code points to skip
376 * Advance the string offset from one code point boundary to the n-th next one,
377 * i.e., move forward by n code points.
384 * @param n number of code points to skip
397 * Adjust a random-access offset to a code point boundary
398 * at the start of a code point.
416 * Adjust a random-access offset to a code point boundary
417 * at the start of a code point.
438 * Move the string offset from one code point boundary to the previous one
439 * and get the code point between them.
445 * for a supplementary code point, then the macro will read
448 * will be returned as the code point.
465 * Move the string offset from one code point boundary to the previous one
466 * and get the code point between them.
472 * for a supplementary code point, then the macro will read
476 * will be returned as the code point.
497 * Move the string offset from one code point boundary to the previous one.
514 * Move the string offset from one code point boundary to the previous one.
532 * Move the string offset from one code point boundary to the n-th one before it,
533 * i.e., move backward by n code points.
540 * @param n number of code points to skip
553 * Move the string offset from one code point boundary to the n-th one before it,
554 * i.e., move backward by n code points.
562 * @param n number of code points to skip
575 * Adjust a random-access offset to a code point boundary after a code point.
594 * Adjust a random-access offset to a code point boundary after a code point.