pike.git/
src/
builtin.cmod
Branch:
Tag:
Non-build tags
All tags
No tags
2016-07-04
2016-07-04 18:08:17 by Martin Nilsson <nilsson@fastmail.com>
8ff89d14f15c5913d4c1e734e6e4c0d8836408b7 (
7
lines) (+
4
/-
3
)
[
Show
|
Annotate
]
Branch:
8.1
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;