| 527 #endif |
526 #endif |
| 528 } |
527 } |
| 529 |
528 |
| 530 void cx_strlower(cxmutstr string) { |
529 void cx_strlower(cxmutstr string) { |
| 531 cx_for_n(i, string.length) { |
530 cx_for_n(i, string.length) { |
| 532 string.ptr[i] = tolower(string.ptr[i]); |
531 string.ptr[i] = (char) tolower(string.ptr[i]); |
| 533 } |
532 } |
| 534 } |
533 } |
| 535 |
534 |
| 536 void cx_strupper(cxmutstr string) { |
535 void cx_strupper(cxmutstr string) { |
| 537 cx_for_n(i, string.length) { |
536 cx_for_n(i, string.length) { |
| 538 string.ptr[i] = toupper(string.ptr[i]); |
537 string.ptr[i] = (char) toupper(string.ptr[i]); |
| 539 } |
538 } |
| 540 } |
539 } |
| 541 |
540 |
| 542 #define REPLACE_INDEX_BUFFER_MAX 100 |
541 #define REPLACE_INDEX_BUFFER_MAX 100 |
| 543 |
542 |