Data Storage Tool Display Human Input Protocol Math Motor Control Sensor Signal Generation & Processing Speech & Sound Fun View all Objects


Quick Links
Contact Us
Forums
Support

Register
Login

This object is provided under license. By downloading this object, you are agreeing to the terms of the MIT License.

Strings Library v2

Strings Library v2:
Contains 17 string-affecting methods. Methods include Capitalize, CharPos, CharRPos, Concatenate, Pad, Parse, StrCount, StrPos, StrRepeat, StrReplace, StrRev, StrStr, StrToLower, StrToUpper, SubStr, Trim, and WordWrap. Some are similar in functionality to PHP's string functions by the same name.

Version 2 and 1 are being kept separate because different precautions are needed for each. It is not to be used as a drop-in replacement. Be sure to read the documentation to understand the method differences.

A list of methods that may return a string that is longer than the original passed string, thus requiring special setup: StrReplace, Concatenate, Pad, StrRepeat, and WordWrap.

All methods in Version 2 are faster than version 1.X except StrPos which is the same, and StrRev which is 33% slower.

Version:
  2.1

Attributes:


Author:
  Brandon Nimon
  brandonnimon@comcast.net

Categories:
  Tool
  Human Input

Downloads:
  173

Last Updated:
  2009-12-07



User Reviews:



Copyright 2007 by Parallax, Inc.
Please contact obex.support@parallax.com with comments or questions.