String Manipulation

From Yubnub

(Difference between revisions)
m (added footer)
 
Line 23: Line 23:
;[http://yubnub.org/kernel/man?args=strlength strLength]:Returns the length of a string.
;[http://yubnub.org/kernel/man?args=strlength strLength]:Returns the length of a string.
 +
 +
 +
----
 +
 +
View [[Creating Commands]]

Current revision as of 02:18, 6 June 2008

These commands all manipulate strings in various ways. Many of them could be useful when creating new commands.

Return a portion of a string

%
Returns a sublist of words for a given phrase.
FilterString
Removes a word from a string. This is the opposite of %.
strLeft and strLeftRev
Return characters from the beginning of a string.
strRight and strRightRev
Return characters from the end of a string.

Modify a string

strReplace
Replace all instances of a character or string found within another string.
lcase
Convert a string to lowercase.
ucase
Convert a string to uppercase.

Get information about a string

echo
Simply displays a string.
strFind
Returns the position of a string or character within another string.
strLength
Returns the length of a string.



View Creating Commands

Personal tools