src/string.c

changeset 316
be0f6bd10b52
parent 315
5b97de37aada
child 317
ebae0e434898
equal deleted inserted replaced
315:5b97de37aada 316:be0f6bd10b52
622 ret.ptr[i] = toupper(ret.ptr[i]); 622 ret.ptr[i] = toupper(ret.ptr[i]);
623 } 623 }
624 return ret; 624 return ret;
625 } 625 }
626 626
627 // private string conversion functions 627 // type adjustment functions
628 scstr_t ucx_sc2sc(scstr_t c) { 628 scstr_t ucx_sc2sc(scstr_t str) {
629 return c; 629 return str;
630 } 630 }
631 scstr_t ucx_ss2sc(sstr_t str) { 631 scstr_t ucx_ss2sc(sstr_t str) {
632 scstr_t cs; 632 scstr_t cs;
633 cs.ptr = str.ptr; 633 cs.ptr = str.ptr;
634 cs.length = str.length; 634 cs.length = str.length;

mercurial