883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
|
}
/* Continue the search backwards... */
look--;
} while (trailBytesSeen < 3);
/*
* We've seen 3 (or 4) trail bytes, so we know there will not be a
* properly formed byte sequence to find, and we can stop looking,
* accepting the fallback (for TCL_UTF_MAX > 4) or just go back as
* far as we can.
*/
return src - 3;
}
/*
*---------------------------------------------------------------------------
*
* Tcl_UniCharAtIndex --
*
|
|
|
<
>
|
|
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
|
}
/* Continue the search backwards... */
look--;
} while (trailBytesSeen < 3);
/*
* We've seen 3 trail bytes, so we know there will not be a
* properly formed byte sequence to find, and we can stop looking,
* accepting the fallback.
*/
return fallback;
}
/*
*---------------------------------------------------------------------------
*
* Tcl_UniCharAtIndex --
*
|