Changeset 484 for trunk/src/sh_string.c
- Timestamp:
- Sep 1, 2015, 7:45:56 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_string.c
r481 r484 989 989 } 990 990 991 /* split_array_list */ 992 iarr = 6; strcpy(test, " this(a) is_a(test);for(b),remainder(test)foo(bar)"); 993 array = split_array_list (test, &iarr, lengths); 994 CuAssertIntEquals(tc,3,(int)iarr); 995 CuAssertStrEquals(tc,"this(a)", array[0]); 996 CuAssertStrEquals(tc,"is_a(test);for(b)", array[1]); 997 CuAssertStrEquals(tc,"remainder(test)foo(bar)", array[2]); 998 for (i = 0; i < 3; ++i) 999 { 1000 CuAssertIntEquals(tc, (int)strlen(array[i]), lengths[i] ); 1001 } 1002 1003 991 1004 /* string replace */ 992 1005 s = sh_string_new_from_lchar3 ("abc ", 4, "def ", 4, "ghi ", 4);
Note:
See TracChangeset
for help on using the changeset viewer.