Home | History | Annotate | Download | only in cintltst

Lines Matching defs:string

24 #include "string.h"
83 * Convert an integer, positive or negative, to a character string radix 10.
105 /* Reverse the string */
444 log_err("Genrb produced a string larger than expected\n");
478 log_err("Empty string returned invalid value\n");
485 /* This test reads the string "abc\u0000def" from the bundle */
486 /* if everything is working correctly, the size of this string */
489 strcpy(action, "getting and testing of string with embeded zero");
584 log_err("Did not get the expected string for testescape\n");
621 log_err("genrb failed to unescape string\n");
640 log_err("Did not get the expected string for test_underscores.\n");
657 log_err("Did not get the expected string for escaped \\u0075\n");
694 /* test string termination */
699 log_err("Did not get the expected string from riwords. Include functionality failed for genrb.\n");
733 log_err("Did not get the expected string from translit_rules. Include functionality failed for genrb.\n");
778 /* This test reads the string "abc\u0000def" from the bundle */
779 string */
783 strcpy(action, "getting and testing of explicit string of zero length string");
798 strcpy(action, "getting and testing of normal string of zero length string");
1075 /*Test ures_getByIndex on string Resource*/
1079 log_err("ERROR: ures_getByIndex on string resource failed\n");
1083 log_err("ERROR: ures_getByIndex on string resource fetched the key=%s, expected \"TE\" \n", austrdup(ures_getString(teFillin2, &len, &status)));
1426 log_err("UCARules string not nul terminated! \n");
1595 const UChar* string = NULL;
1695 /*----string---------------------------------------------------------------- */
1709 string=tres_getString(theBundle, -1, tag, &len, &status);
1717 string=kERROR;
1722 CONFIRM_EQ(string, expected_string);
1781 string=kERROR;
1788 string=t;
1799 CONFIRM_EQ(string,expected_string);
1868 string = kERROR;
1878 string=t;
1897 CONFIRM_EQ(string,expected_string);
1948 string = kERROR;
1966 string=t;
1978 CONFIRM_EQ(string,expected_string);
2167 const UChar *string = NULL, *sequence = NULL;
2221 string = tres_getString(tb, -1, NULL, &strLen, &status);
2223 if(seqLen != strLen || u_strncmp(sequence, string, seqLen) != 0) {
2224 log_err("Referencing alias didn't get the right string (1)\n");
2227 string = tres_getString(aliasB, -1, "referencingalias", &strLen, &status);
2228 if(seqLen != strLen || u_strncmp(sequence, string, seqLen) != 0) {
2229 log_err("Referencing alias didn't get the right string (2)\n");
2237 string = tres_getString(tb, -1, NULL, &strLen, &status);
2241 log_err("%s trying to get string via separate getters\n", u_errorName(status));
2242 } else if(seqLen != strLen || u_strncmp(sequence, string, seqLen) != 0) {
2243 log_err("Referencing alias didn't get the right string (3)\n");
2254 string = tres_getString(tb, -1, NULL, &strLen, &status);
2256 if(U_FAILURE(status) || seqLen != strLen || u_strncmp(sequence, string, seqLen) != 0) {
2257 log_err("Referencing alias didn't get the right string (4)\n");
2264 string = tres_getString(tb, -1, NULL, &strLen, &status);
2269 if(U_FAILURE(status) || seqLen != strLen || u_strncmp(sequence, string, seqLen) != 0) {
2270 log_err("Referencing alias didn't get the right string (5)\n");
2273 /* test getting aliased string by index */
2305 log_err("(1) Didn't get correct string while accessing alias table by key (%s)\n", keys[i]);
2316 log_err("(2) Didn't get correct string while accesing alias table by index (%s)\n", strings[i]);
2327 log_err("(3) Didn't get correct string while iterating over alias table (%s)\n", strings[i]);
2343 log_err("Didn't get correct string while accesing alias by index in an array (%s)\n", strings[i]);
2354 log_err("Didn't get correct string while iterating over aliases in an array (%s)\n", strings[i]);
2729 log_err("Couldn't get correct string value (%s)\n", myErrorName(status));
2741 log_err("Couldn't get correct string value (%s)\n", myErrorName(status));
2753 log_err("Couldn't get correct string value (%s)\n", myErrorName(status));
2904 /* the UTF-16 string contains an unpaired surrogate, can't test UTF-8 variant */
2930 log_err("ures_getUTF8String(%p, %ld, '%s') did not write the string to dest\n",
2939 /* verify correct string */
2945 log_err("ures_getUTF8String(%p, %ld, '%s') got a bad string, c16=U+%04lx!=U+%04lx=c8 before i16=%ld\n",
2951 log_err("ures_getUTF8String(%p, %ld, '%s') UTF-8 string too short, length8=%ld, length16=%ld\n",
2955 log_err("ures_getUTF8String(%p, %ld, '%s') UTF-8 string too long, length8=%ld, length16=%ld\n",
3004 log_err("ures_getUTF8StringByKey(testdata/root string) malfunctioned - %s\n", u_errorName(status));