Home | History | Annotate | Download | only in unicode

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
92 * Get a supplementary code point value (U+10000..U+10ffff)
99 * @return supplementary code point (U+10000..U+10ffff)
108 * supplementary code point (0x10000..0x10ffff).
109 * @param supplementary 32-bit code point (U+10000..U+10ffff)
117 * supplementary code point (0x10000..0x10ffff).
118 * @param supplementary 32-bit code point (U+10000..U+10ffff)
125 * How many 16-bit code units are used to encode this Unicode code point? (1 or 2)
126 * The result is not defined if c is not a Unicode code point (U+0000..U+10ffff).
127 * @param c 32-bit code point
134 * The maximum number of 16-bit code units per Unicode code point (U+0000..U+10ffff).
141 * Get a code point from a string at a random-access offset,
146 * for a supplementary code point, in which case the macro will read
169 * Get a code point from a string at a random-access offset,
174 * for a supplementary code point, in which case the macro will read
177 * will be returned as the code point.
207 * Get a code point from a string at a code point boundary offset,
208 * and advance the offset to the next code point boundary.
213 * for a supplementary code point, in which case the macro will read
216 * will be returned as the code point.
233 * Get a code point from a string at a code point boundary offset,
234 * and advance the offset to the next code point boundary.
239 * for a supplementary code point, in which case the macro will read
243 * will be returned as the code point.
264 * Append a code point to a string, overwriting 1 or 2 code units.
267 * "Unsafe" macro, assumes a valid code point and sufficient space in the string.
272 * @param c code point to append
286 * Append a code point to a string, overwriting 1 or 2 code units.
289 * "Safe" macro, checks for a valid code point.
291 * If the code point is not valid or a trail surrogate does not fit,
297 * @param c code point to append
314 * Advance the string offset from one code point boundary to the next.
330 * Advance the string offset from one code point boundary to the next.
347 * Advance the string offset from one code point boundary to the n-th next one,
348 * i.e., move forward by n code points.
354 * @param n number of code points to skip
367 * Advance the string offset from one code point boundary to the n-th next one,
368 * i.e., move forward by n code points.
375 * @param n number of code points to skip
388 * Adjust a random-access offset to a code point boundary
389 * at the start of a code point.
407 * Adjust a random-access offset to a code point boundary
408 * at the start of a code point.
429 * Move the string offset from one code point boundary to the previous one
430 * and get the code point between them.
436 * for a supplementary code point, then the macro will read
439 * will be returned as the code point.
456 * Move the string offset from one code point boundary to the previous one
457 * and get the code point between them.
463 * for a supplementary code point, then the macro will read
467 * will be returned as the code point.
488 * Move the string offset from one code point boundary to the previous one.
505 * Move the string offset from one code point boundary to the previous one.
523 * Move the string offset from one code point boundary to the n-th one before it,
524 * i.e., move backward by n code points.
531 * @param n number of code points to skip
544 * Move the string offset from one code point boundary to the n-th one before it,
545 * i.e., move backward by n code points.
553 * @param n number of code points to skip
566 * Adjust a random-access offset to a code point boundary after a code point.
585 * Adjust a random-access offset to a code point boundary after a code point.