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 */
452 log_err("Genrb produced a string larger than expected\n");
486 log_err("Empty string returned invalid value\n");
493 /* This test reads the string "abc\u0000def" from the bundle */
494 /* if everything is working correctly, the size of this string */
497 strcpy(action, "getting and testing of string with embeded zero");
592 log_err("Did not get the expected string for testescape\n");
629 log_err("genrb failed to unescape string\n");
648 log_err("Did not get the expected string for test_underscores.\n");
665 log_err("Did not get the expected string for escaped \\u0075\n");
702 /* test string termination */
707 log_err("Did not get the expected string from riwords. Include functionality failed for genrb.\n");
741 log_err("Did not get the expected string from translit_rules. Include functionality failed for genrb.\n");
786 /* This test reads the string "abc\u0000def" from the bundle */
787 /* if everything is working correctly, the size of this string */
791 strcpy(action, "getting and testing of explicit string of zero length string");
806 strcpy(action, "getting and testing of normal string of zero length string");
1081 /*Test ures_getByIndex on string Resource*/
1085 log_err("ERROR: ures_getByIndex on string resource failed\n");
1089 log_err("ERROR: ures_getByIndex on string resource fetched the key=%s, expected \"TE\" \n", austrdup(ures_getString(teFillin2, &len, &status)));
1452 log_err("UCARules string not nul terminated! \n");
1599 const UChar* string = NULL;
1699 /*----string---------------------------------------------------------------- */
1713 string=tres_getString(theBundle, -1, tag, &len, &status);
1721 string=kERROR;
1726 CONFIRM_EQ(string, expected_string);
1785 string=kERROR;
1792 string=t;
1803 CONFIRM_EQ(string,expected_string);
1872 string = kERROR;
1882 string=t;
1901 CONFIRM_EQ(string,expected_string);
1952 string = kERROR;
1970 string=t;
1982 CONFIRM_EQ(string,expected_string);
2115 const UChar *string = NULL, *sequence = NULL;
2169 string = tres_getString(tb, -1, NULL, &strLen, &status);
2171 if(seqLen != strLen || u_strncmp(sequence, string, seqLen) != 0) {
2172 log_err("Referencing alias didn't get the right string (1)\n");
2175 string = tres_getString(aliasB, -1, "referencingalias", &strLen, &status);
2176 if(seqLen != strLen || u_strncmp(sequence, string, seqLen) != 0) {
2177 log_err("Referencing alias didn't get the right string (2)\n");
2185 string = tres_getString(tb, -1, NULL, &strLen, &status);
2189 log_err("%s trying to get string via separate getters\n", u_errorName(status));
2190 } else if(seqLen != strLen || u_strncmp(sequence, string, seqLen) != 0) {
2191 log_err("Referencing alias didn't get the right string (3)\n");
2202 string = tres_getString(tb, -1, NULL, &strLen, &status);
2204 if(U_FAILURE(status) || seqLen != strLen || u_strncmp(sequence, string, seqLen) != 0) {
2205 log_err("Referencing alias didn't get the right string (4)\n");
2212 string = tres_getString(tb, -1, NULL, &strLen, &status);
2217 if(U_FAILURE(status) || seqLen != strLen || u_strncmp(sequence, string, seqLen) != 0) {
2218 log_err("Referencing alias didn't get the right string (5)\n");
2221 /* test getting aliased string by index */
2253 log_err("(1) Didn't get correct string while accessing alias table by key (%s)\n", keys[i]);
2264 log_err("(2) Didn't get correct string while accesing alias table by index (%s)\n", strings[i]);
2275 log_err("(3) Didn't get correct string while iterating over alias table (%s)\n", strings[i]);
2291 log_err("Didn't get correct string while accesing alias by index in an array (%s)\n", strings[i]);
2302 log_err("Didn't get correct string while iterating over aliases in an array (%s)\n", strings[i]);
2660 log_err("Couldn't get correct string value (%s)\n", myErrorName(status));
2672 log_err("Couldn't get correct string value (%s)\n", myErrorName(status));
2684 log_err("Couldn't get correct string value (%s)\n", myErrorName(status));
2835 /* the UTF-16 string contains an unpaired surrogate, can't test UTF-8 variant */
2861 log_err("ures_getUTF8String(%p, %ld, '%s') did not write the string to dest\n",
2870 /* verify correct string */
2876 log_err("ures_getUTF8String(%p, %ld, '%s') got a bad string, c16=U+%04lx!=U+%04lx=c8 before i16=%ld\n",
2882 log_err("ures_getUTF8String(%p, %ld, '%s') UTF-8 string too short, length8=%ld, length16=%ld\n",
2886 log_err("ures_getUTF8String(%p, %ld, '%s') UTF-8 string too long, length8=%ld, length16=%ld\n",
2934 log_err("ures_getUTF8StringByKey(testdata/root string) malfunctioned - %s\n", u_errorName(status));