![]() |
Look up strip in Wiktionary, the free dictionary. |
![]() |
Wikisource has the text of the 1911 Encyclopædia Britannica article Strip. |
Strip, stripping, or stripped may refer to:
|
![]() |
This disambiguation page lists articles associated with the same title. If an internal link led you here, you may wish to change the link to point directly to the intended article. |
In computer programming, trimming (trim) or stripping (strip) is a string manipulation in which leading and trailing whitespace is removed from a string.
For example, the string (enclosed by apostrophes)
would be changed, after trimming, to
The characters which are considered whitespace varies between programming languages and implementations. For example, C traditionally only counts space, tab, line feed, and carriage return characters, while languages which support Unicode typically include all Unicode space characters. Some implementations also include ASCII control codes (non-printing characters) along with whitespace characters.
Java's trim method considers ASCII spaces and control codes as whitespace, contrasting with the Java isWhitespace()
method, which recognizes all Unicode space characters.
Delphi's Trim function considers characters U+0000 (NULL) through U+0020 (SPACE) to be whitespace.
Following are examples of trimming a string using several programming languages. All of the implementations shown return a new string and do not alter the original variable.
Strip was a short-lived comics anthology published by Marvel UK in 1990. It ran for 20 issues (February - November 1990) and featured work by many British comics creators, including Alan Grant, Ian Gibson, Pat Mills, Kevin O'Neill, Si Spencer and John Wagner. Strips include Marshal Law by Pat Mills and Kev O'Neill and Grimtoad by Grant, Wagner and Gibson.