src/string.c

changeset 1136
d9ff0f091f28
parent 1134
60edcd57d54c
child 1137
61939929030a
equal deleted inserted replaced
1135:f79415d974d3 1136:d9ff0f091f28
261 cxstring result = cx_strrchr(cx_strcast(string), chr); 261 cxstring result = cx_strrchr(cx_strcast(string), chr);
262 return (cxmutstr) {(char *) result.ptr, result.length}; 262 return (cxmutstr) {(char *) result.ptr, result.length};
263 } 263 }
264 264
265 #ifndef CX_STRSTR_SBO_SIZE 265 #ifndef CX_STRSTR_SBO_SIZE
266 #define CX_STRSTR_SBO_SIZE 512 266 #define CX_STRSTR_SBO_SIZE 128
267 #endif 267 #endif
268 const unsigned cx_strstr_sbo_size = CX_STRSTR_SBO_SIZE; 268 const unsigned cx_strstr_sbo_size = CX_STRSTR_SBO_SIZE;
269 269
270 cxstring cx_strstr( 270 cxstring cx_strstr(
271 cxstring haystack, 271 cxstring haystack,

mercurial