• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/OpenLDAP-499.27/OpenLDAP/libraries/liblunicode/ucdata/

Lines Matching refs:cursor

133     run->cursor = ~0;
166 * Add the run to the logical list for cursor traversal.
200 * Add the run to the visual list for cursor traversal.
235 * Add the run to the visual list for cursor traversal.
272 * Add the run to the visual list for cursor traversal.
302 * Add the run to the visual list for cursor traversal.
333 str->visual_first = str->visual_last = str->cursor = 0;
428 * Set up the initial cursor run.
430 str->cursor = str->logical_first;
432 str->cursor->cursor = (str->cursor->direction == UCPGBA_RTL) ?
433 str->cursor->end - str->cursor->start : 0;
477 ucrun_t *cursor;
482 cursor = str->cursor;
484 size = cursor->end - cursor->start;
485 if ((cursor->direction == UCPGBA_RTL && cursor->cursor + 1 == size) ||
486 cursor->cursor + 1 > size) {
488 * If the next run is NULL, then the cursor is already on the
491 if (cursor->visual_next == 0)
500 str->cursor = cursor = cursor->visual_next;
501 cursor->cursor = (cursor->direction == UCPGBA_RTL) ? -1 : 0;
502 size = cursor->end - cursor->start;
504 cursor->cursor++;
515 ucrun_t *cursor;
520 cursor = str->cursor;
522 size = cursor->end - cursor->start;
524 if (cursor->direction == UCPGBA_RTL) {
525 if (cursor->cursor + 1 == size) {
526 if (cursor == str->logical_first)
532 str->cursor = cursor = cursor->logical_prev;
533 size = cursor->end - cursor->start;
534 cursor->cursor = (cursor->direction == UCPGBA_LTR) ?
537 cursor->cursor++;
539 if (cursor->cursor == 0) {
540 if (cursor == str->logical_first)
546 str->cursor = cursor = cursor->logical_prev;
547 size = cursor->end - cursor->start;
548 cursor->cursor = (cursor->direction == UCPGBA_LTR) ?
551 cursor->cursor--;
554 if (cursor->direction == UCPGBA_RTL) {
555 if (cursor->cursor == 0) {
556 if (cursor == str->logical_last)
562 str->cursor = cursor = cursor->logical_next;
563 size = cursor->end - cursor->start;
564 cursor->cursor = (cursor->direction == UCPGBA_LTR) ?
567 cursor->cursor--;
569 if (cursor->cursor + 1 > size) {
570 if (cursor == str->logical_last)
576 str->cursor = cursor = cursor->logical_next;
577 cursor->cursor = (cursor->direction == UCPGBA_LTR) ?
580 cursor->cursor++;
603 ucrun_t *cursor;
608 cursor = str->cursor;
610 size = cursor->end - cursor->start;
611 if ((cursor->direction == UCPGBA_LTR && cursor->cursor == 0) ||
612 cursor->cursor - 1 < -1) {
614 * If the preceding run is NULL, then the cursor is already on the
617 if (cursor->visual_prev == 0)
626 str->cursor = cursor = cursor->visual_prev;
627 size = cursor->end - cursor->start;
628 cursor->cursor = (cursor->direction == UCPGBA_RTL) ?
631 cursor->cursor--;
642 ucrun_t *cursor;
647 cursor = str->cursor;
649 size = cursor->end - cursor->start;
651 if (cursor->direction == UCPGBA_RTL) {
652 if (cursor->cursor == -1) {
653 if (cursor == str->logical_last)
659 str->cursor = cursor = cursor->logical_next;
660 size = cursor->end - cursor->start;
661 cursor->cursor = (cursor->direction == UCPGBA_LTR) ?
664 cursor->cursor--;
666 if (cursor->cursor + 1 > size) {
667 if (cursor == str->logical_last)
673 str->cursor = cursor = cursor->logical_next;
674 size = cursor->end - cursor->start;
675 cursor->cursor = (cursor->direction == UCPGBA_LTR) ?
678 cursor->cursor++;
681 if (cursor->direction == UCPGBA_RTL) {
682 if (cursor->cursor + 1 == size) {
683 if (cursor == str->logical_first)
689 str->cursor = cursor = cursor->logical_prev;
690 size = cursor->end - cursor->start;
691 cursor->cursor = (cursor->direction == UCPGBA_LTR) ?
694 cursor->cursor++;
696 if (cursor->cursor == 0) {
697 if (cursor == str->logical_first)
703 str->cursor = cursor = cursor->logical_prev;
704 cursor->cursor = (cursor->direction == UCPGBA_LTR) ?
707 cursor->cursor--;
730 ucrun_t *cursor;
735 cursor = str->cursor;
737 *direction = cursor->direction;
739 c = cursor->cursor;
740 size = cursor->end - cursor->start;
743 *position = (cursor->direction == UCPGBA_RTL) ?
744 cursor->start : cursor->positions[c - 1];
746 *position = (cursor->direction == UCPGBA_RTL) ?
747 cursor->end : cursor->start;
749 *position = cursor->positions[c];