Lines Matching refs:uchar
17 #include "unicode/uchar.h"
49 static void _testInverseBidi(UBiDi *pBiDi, const UChar *src, int32_t srcLength,
72 static void _testPresentationForms(const UChar *in);
101 const UChar *dest, int32_t destLen, int mode,
117 static UChar *
118 getStringFromDirProps(const uint8_t *dirProps, int32_t length, UChar *buffer);
120 static void printUnicode(const UChar *s, int32_t length, const UBiDiLevel *levels);
203 UChar string[MAXLEN];
241 static UChar pseudoToUChar[TABLE_SIZE];
269 UChar uchar;
314 for (i = 0, uchar = 0x0030; i < 6; i++, uchar++) {
316 pseudoToUChar[c] = uchar;
317 UCharToPseudo[uchar & 0x00ff] = c;
320 for (i = 6, uchar = 0x0666; i < 10; i++, uchar++) {
322 pseudoToUChar[c] = uchar;
323 UCharToPseud2[uchar & 0x00ff] = c;
326 for (i = 10, uchar = 0x0631; i < 16; i++, uchar++) {
328 pseudoToUChar[c] = uchar;
329 UCharToPseud2[uchar & 0x00ff] = c;
332 for (i = 16, uchar = 0x05D7; i < 32; i++, uchar++) {
334 pseudoToUChar[c] = uchar;
335 UCharToPseud2[uchar & 0x00ff] = c;
338 for (i = 32, uchar=0x08D0; i < 36; i++, uchar++) {
340 pseudoToUChar[c] = uchar;
341 UCharToPseud2[uchar & 0x00ff] = c;
344 for (i = 36, uchar = 0x0061; i < 62; i++, uchar++) {
346 pseudoToUChar[c] = uchar;
347 UCharToPseudo[uchar & 0x00ff] = c;
354 static int pseudoToU16(const int length, const char * input, UChar * output)
355 /* This function converts a pseudo-Bidi string into a UChar string.
356 It returns the length of the UChar string.
371 static int u16ToPseudo(const int length, const UChar * input, char * output)
372 /* This function converts a UChar string into a pseudo-Bidi string.
377 UChar uchar;
383 uchar = input[i];
384 output[i] = uchar < 0x0100 ? UCharToPseudo[uchar] :
385 UCharToPseud2[uchar & 0x00ff];
738 UChar src[MAXLEN];
739 UChar dest[MAXLEN];
773 UChar src[MAXLEN];
774 UChar dest[MAXLEN];
807 UChar src[MAXLEN];
808 UChar dest[MAXLEN];
838 UChar src[MAXLEN];
839 UChar dest[MAXLEN];
872 UChar src[MAXLEN];
873 UChar dest[MAXLEN];
906 static const UChar logicalOrder[][MAXLEN]={
948 static const UChar visualOrder[][MAXLEN]={
1000 UChar dest[MAXLEN];
1296 static const UChar
1317 /*Invalid UChar*/
1329 const UChar *s;
1412 UChar src[MAXLEN], dest[MAXLEN];
1552 if (destLen != 3 || memcmp(dest, src, 3 * sizeof(UChar))) {
1570 if (destLen != 3 || memcmp(dest, src, destLen * sizeof(UChar))) {
1578 if (destLen != 3 || memcmp(dest, src, destLen * sizeof(UChar))) {
1587 if (destLen != 2 || memcmp(dest, src, destLen * sizeof(UChar))) {
1596 if (destLen != 6 || memcmp(dest, src, destLen * sizeof(UChar))) {
1605 if (destLen != 7 || memcmp(dest, src, destLen * sizeof(UChar))) {
1614 if (destLen != 11 || memcmp(dest, src, destLen * sizeof(UChar))) {
1628 if (destLen != 57 || memcmp(dest, src, destLen * sizeof(UChar))) {
1637 if (destLen != 4 || memcmp(dest, src, destLen * sizeof(UChar))) {
1646 if (destLen != 16 || memcmp(dest, src, destLen * sizeof(UChar))) {
1655 if (destLen != 13 || memcmp(dest, src, destLen * sizeof(UChar))) {
1664 if (destLen != 5 || memcmp(dest, src, destLen * sizeof(UChar))) {
1699 UChar src[MAXLEN];
1819 static const UChar multiparaTestString[] = {
1842 UChar src[MAXLEN], dest[MAXLEN];
2072 src[4]=(UChar)i; /* with and without terminating B */
2074 src[0]=(UChar)j; /* leading 'A' or Alef */
2099 if (memcmp(src, dest, destLen * sizeof(UChar))) {
2107 if (memcmp(src, dest, destLen * sizeof(UChar))) {
2119 if (memcmp(src, dest, destLen * sizeof(UChar))) {
2169 static const UChar
2177 const UChar *s;
2230 static const UChar repeatSegments[COUNT_REPEAT_SEGMENTS][2]={
2241 UChar text[8]={ 0, 0, 0x20, 0, 0, 0x20, 0, 0 };
2266 _testInverseBidi(UBiDi *pBiDi, const UChar *src, int32_t srcLength,
2268 UChar visualLTR[MAXLEN], logicalDest[MAXLEN], visualDest[MAXLEN];
2346 static const UChar forward[]={
2353 UChar reverse[10];
2384 UChar text[90], dest[MAXLEN], expected[120];
2401 if (memcmp(dest, expected, destLen * sizeof(UChar))) {
2413 UChar src[3], dest[MAXLEN], expected[5];
2422 if (memcmp(dest, expected, destLen * sizeof(UChar))) {
2435 static const UChar
2459 UChar dest[8];
2612 (UChar *)(source+2), UPRV_LENGTHOF(dest), /* overlap source and destination */
2632 static const UChar
2678 UChar dest[38];
2783 static const UChar
2804 UChar dest[43];
2835 static const UChar
2858 UChar dest[36];
2914 static const UChar src[] = { 0x0020, 0x0633, 0 };
2915 static const UChar dst_old[] = { 0xFEB1, 0x200B,0 };
2916 static const UChar dst_new[] = { 0xFEB1, 0xFE73,0 };
2917 UChar dst[3] = { 0x0000, 0x0000,0 };
2959 static const UChar
2980 UChar dest[38];
3034 static const UChar
3069 UChar dest[20];
3164 static const UChar
3251 UChar dest[MAXLEN];
3323 static void _testPresentationForms(const UChar* in) {
3327 UChar otherChar[] = {0x0628, 0xfe8f, 0xfe90, 0xfe91, 0xfe92};
3328 UChar src[3];
3329 UChar dst[3];
3477 static const UChar letterForms[][5]={
3580 static UChar *
3581 getStringFromDirProps(const uint8_t *dirProps, int32_t length, UChar *buffer) {
3594 static void printUnicode(const UChar *s, int32_t length, const UBiDiLevel *levels) {
3941 const char *destChars, const UChar *dest, int32_t destLen,
4045 UChar dest2[MAXLEN];
4183 UChar src[MAXLEN], dest[MAXLEN], visual1[MAXLEN], visual2[MAXLEN];
4262 UChar src[MAXLEN], dest[MAXLEN];
4377 UChar src[MAXLEN], dest2[MAXLEN];
4433 UChar src[MAXLEN];
4435 UChar *pSrc;
4560 UChar src[MAXLEN], dest[MAXLEN];
4823 UChar prologue[MAXLEN], epilogue[MAXLEN], src[MAXLEN], dest[MAXLEN];
4909 UChar src[100];