Lines Matching full:code
30 * <p>Characters can be accessed in two ways: as code units or as
31 * code points.
32 * Unicode code points are 21-bit integers and are the scalar values
34 * Unicode code units are the storage units of a given
36 * With UTF-16, all code points can be represented with either one
37 * or two code units ("surrogates").
38 * String storage is typically based on code units, while properties
39 * of characters are typically determined using code point values.
40 * Some processes may be designed to work with sequences of code units,
42 * algorithm can be represented with single code units.
43 * Other processes will need to use the code point access functions.</p>
46 * a code unit and advance an internal position into the text object,
47 * similar to a <code>return text[position++]</code>.<br>
48 * It provides next32PostInc() to access a code point and advance an internal
52 * the beginning of a code point, i.e., of its first code unit.
54 * In general, access to code units and code points in the same
56 * is on a second code unit (Low Surrogate), then only that code unit
69 * \code
127 * Generates a hash code for this iterator.
128 * @return the hash code.
143 * Gets the current code unit for returning and advances to the next code unit
146 * no more code units to return, returns DONE.
147 * @return the current code unit.
153 * Gets the current code point for returning and advances to the next code point
156 * no more code points to return, returns DONE.
157 * @return the current code point.
163 * Returns FALSE if there are no more code units or code points
167 * @returns FALSE if there are no more code units or code points
204 * both code units and code points. Code point access versions are available
218 * \code
229 * \code
238 * \code
248 * \code
258 * \code
260 * // set to the third code point from the beginning
262 * // get a code point from here without moving the position
266 * // get the previous code unit
268 * // move back one more code unit
271 * // and read the same code point c and move beyond it
283 * \code
292 * \code
303 * \code
315 * \code
337 * \code
375 * Sets the iterator to refer to the first code unit in its
376 * iteration range, and returns that code unit.
378 * @return the first code unit in its iteration range.
384 * Sets the iterator to refer to the first code unit in its
385 * iteration range, returns that code unit, and moves the position
386 * to the second code unit. This is an alternative to setToStart()
388 * @return the first code unit in its iteration range.
394 * Sets the iterator to refer to the first code point in its
395 * iteration range, and returns that code unit,
399 * @return the first code point in its iteration range.
405 * Sets the iterator to refer to the first code point in its
406 * iteration range, returns that code point, and moves the position
407 * to the second code point. This is an alternative to setToStart()
409 * @return the first code point in its iteration range.
415 * Sets the iterator to refer to the first code unit or code point in its
424 * Sets the iterator to refer to the last code unit in its
425 * iteration range, and returns that code unit.
427 * @return the last code unit.
433 * Sets the iterator to refer to the last code point in its
434 * iteration range, and returns that code unit.
436 * @return the last code point.
443 * the last code unit or code point. This can be used to begin a backward
451 * Sets the iterator to refer to the "position"-th code unit
453 * returns that code unit.
454 * @param position the "position"-th code unit in the text-storage object
455 * @return the "position"-th code unit.
461 * Sets the iterator to refer to the beginning of the code point
462 * that contains the "position"-th code unit
464 * returns that code point.
465 * The current position is adjusted to the beginning of the code point
466 code unit).
467 * @param position the "position"-th code unit in the text-storage object
468 * @return the "position"-th code point.
474 * Returns the code unit the iterator currently refers to.
475 * @return the current code unit.
481 * Returns the code point the iterator currently refers to.
482 * @return the current code point.
488 * Advances to the next code unit in the iteration range
489 * (toward endIndex()), and returns that code unit. If there are
490 * no more code units to return, returns DONE.
491 * @return the next code unit.
497 * Advances to the next code point in the iteration range
498 * (toward endIndex()), and returns that code point. If there are
499 * no more code points to return, returns DONE.
503 * @return the next code point.
509 * Advances to the previous code unit in the iteration range
510 * (toward startIndex()), and returns that code unit. If there are
511 * no more code units to return, returns DONE.
512 * @return the previous code unit.
518 * Advances to the previous code point in the iteration range
519 * (toward startIndex()), and returns that code point. If there are
520 * no more code points to return, returns DONE.
521 * @return the previous code point.
527 * Returns FALSE if there are no more code units or code points
531 * @return FALSE if there are no more code units or code points
581 * The movement is expressed in numbers of code units forward
594 * The movement is expressed in numbers of code points forward