Branch: Tag:

2016-07-04

2016-07-04 18:08:17 by Martin Nilsson <nilsson@fastmail.com>

It's tedious to write trim_all_whites. Make trim the canonical name.

1628:    RETURN finish_string_builder (&sb);   }    - /*! @decl string trim_all_whites (string s) + /*! @decl string trim (string s)    *! @belongs String    *!    *! Trim leading and trailing white spaces characters (space, tab,
1636:    *! white spaces defined in Unicode) from the string @[s].    */   PMOD_EXPORT - PIKEFUN string string_trim_all_whites (string s) -  errname trim_all_whites; + PIKEFUN string string_trim (string s) +  errname trim;    optflags OPT_TRY_OPTIMIZE;   {    ptrdiff_t start = 0, end = s->len;