src/utils/String16.h
/**
     * remove any leading and trailing whitespace.
     */
remove any leading and trailing whitespace.
remove any leading and trailing whitespace .
void trim() {
        long len = this->length();
        long st = 0;
        while ((st < len) && (CHARS[st] <= U' ')) {
            st++;
        }
        while ((st < len) && (CHARS[len - 1] <= U' ')) {
            len--;
        }
        this->size = len - st;
        cpy(CHARS, st, CHARS, 0, size);
        CHARS[this->size] = TERMINATE;
    }
void trim ( ) { long len = this -> length ( ) ; long st = 0 ; while ( ( st < len ) && ( CHARS [ st ] <= U' ' ) ) { st ++ ; } while ( ( st < len ) && ( CHARS [ len - 1 ] <= U' ' ) ) { len -- ; } this -> size = len - st ; cpy ( CHARS , st , CHARS , 0 , size ) ; CHARS [ this -> size ] = TERMINATE ; }
remove any leading and trailing whitespace.
remove any leading and trailing whitespace .