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 */
453 log_err("Genrb produced a string larger than expected\n");
487 log_err("Empty string returned invalid value\n");
494 /* This test reads the string "abc\u0000def" from the bundle */
495 /* if everything is working correctly, the size of this string */
498 strcpy(action, "getting and testing of string with embeded zero");
593 log_err("Did not get the expected string for testescape\n");
630 log_err("genrb failed to unescape string\n");
649 log_err("Did not get the expected string for test_underscores.\n");
666 log_err("Did not get the expected string for escaped \\u0075\n");
703 /* test string termination */
708 log_err("Did not get the expected string from riwords. Include functionality failed for genrb.\n");
742 log_err("Did not get the expected string from translit_rules. Include functionality failed for genrb.\n");
787 /* This test reads the string "abc\u0000def" from the bundle */
788 /* if everything is working correctly, the size of this string */
792 strcpy(action, "getting and testing of explicit string of zero length string");
807 strcpy(action, "getting and testing of normal string of zero length string");
1082 /*Test ures_getByIndex on string Resource*/
1086 log_err("ERROR: ures_getByIndex on string resource failed\n");
1090 log_err("ERROR: ures_getByIndex on string resource fetched the key=%s, expected \"TE\" \n", austrdup(ures_getString(teFillin2, &len, &status)));
1453 log_err("UCARules string not nul terminated! \n");
1600 const UChar* string = NULL;
1700 /*----string---------------------------------------------------------------- */
1714 string=tres_getString(theBundle, -1, tag, &len, &status);
1722 string=kERROR;
1727 CONFIRM_EQ(string, expected_string);
1786 string=kERROR;
1793 string=t;
1804 CONFIRM_EQ(string,expected_string);
1873 string = kERROR;
1883 string=t;
1902 CONFIRM_EQ(string,expected_string);
1953 string = kERROR;
1971 string=t;
1983 CONFIRM_EQ(string,expected_string);
2116 const UChar *string = NULL, *sequence = NULL;
2170 string = tres_getString(tb, -1, NULL, &strLen, &status);
2172 if(seqLen != strLen || u_strncmp(sequence, string, seqLen) != 0) {
2173 log_err("Referencing alias didn't get the right string (1)\n");
2176 string = tres_getString(aliasB, -1, "referencingalias", &strLen, &status);
2177 if(seqLen != strLen || u_strncmp(sequence, string, seqLen) != 0) {
2178 log_err("Referencing alias didn't get the right string (2)\n");
2186 string = tres_getString(tb, -1, NULL, &strLen, &status);
2190 log_err("%s trying to get string via separate getters\n", u_errorName(status));
2191 } else if(seqLen != strLen || u_strncmp(sequence, string, seqLen) != 0) {
2192 log_err("Referencing alias didn't get the right string (3)\n");
2203 string = tres_getString(tb, -1, NULL, &strLen, &status);
2205 if(U_FAILURE(status) || seqLen != strLen || u_strncmp(sequence, string, seqLen) != 0) {
2206 log_err("Referencing alias didn't get the right string (4)\n");
2213 string = tres_getString(tb, -1, NULL, &strLen, &status);
2218 if(U_FAILURE(status) || seqLen != strLen || u_strncmp(sequence, string, seqLen) != 0) {
2219 log_err("Referencing alias didn't get the right string (5)\n");
2222 /* test getting aliased string by index */
2254 log_err("(1) Didn't get correct string while accessing alias table by key (%s)\n", keys[i]);
2265 log_err("(2) Didn't get correct string while accesing alias table by index (%s)\n", strings[i]);
2276 log_err("(3) Didn't get correct string while iterating over alias table (%s)\n", strings[i]);
2292 log_err("Didn't get correct string while accesing alias by index in an array (%s)\n", strings[i]);
2303 log_err("Didn't get correct string while iterating over aliases in an array (%s)\n", strings[i]);
2685 log_err("Couldn't get correct string value (%s)\n", myErrorName(status));
2697 log_err("Couldn't get correct string value (%s)\n", myErrorName(status));
2709 log_err("Couldn't get correct string value (%s)\n", myErrorName(status));
2860 /* the UTF-16 string contains an unpaired surrogate, can't test UTF-8 variant */
2886 log_err("ures_getUTF8String(%p, %ld, '%s') did not write the string to dest\n",
2895 /* verify correct string */
2901 log_err("ures_getUTF8String(%p, %ld, '%s') got a bad string, c16=U+%04lx!=U+%04lx=c8 before i16=%ld\n",
2907 log_err("ures_getUTF8String(%p, %ld, '%s') UTF-8 string too short, length8=%ld, length16=%ld\n",
2911 log_err("ures_getUTF8String(%p, %ld, '%s') UTF-8 string too long, length8=%ld, length16=%ld\n",
2959 log_err("ures_getUTF8StringByKey(testdata/root string) malfunctioned - %s\n", u_errorName(status));