custom implementation / needs to be installed
Converts underscored or dasherized string to a camelized one. Begins with a lower case letter unless it starts with an underscore, dash or an upper case letter.
custom implementation / needs to be installed
Trim and replace multiple spaces with a single space.
custom implementation / needs to be installed
Converts string to camelized class name. First letter is always upper case.
custom implementation / needs to be installed
Counts the number of times needle is in haystack
custom implementation / needs to be installed
Converts a underscored or camelized string into an dasherized one
custom implementation / needs to be installed
Converts first letter of the string to lowercase.
custom implementation / needs to be installed
Using Python Standard Library textwrap
Remove any common leading whitespace from every line in text.
This can be used to make triple-quoted strings line up with the left edge of the display, while still presenting them in the source code in indented form.
Note that tabs and spaces are both treated as whitespace, but they are not equal: the lines hello
and \thello
are considered to have no common leading whitespace.
custom implementation / needs to be installed
Checks whether the string ends with needle at position (default: haystack.length).
custom implementation / needs to be installed
Converts HTML special characters to their entity equivalents. This function supports cent, yen, euro, pound, lt, gt, copy, reg, quote, amp, apos.
custom implementation / needs to be installed
Converts an underscored, camelized, or dasherized string into a humanized one. Also removes beginning and ending whitespace, and removes the postfix '_id'.
custom implementation / needs to be installed
Tests if string contains a substring.
custom implementation / needs to be installed
Insert word in string at the defined position.
custom implementation / needs to be installed
Using Python Standard Library string rjust
Return the string left justified in a string of length width. Padding is done using the specified fillchar (default is a space). The original string is returned if width is less than or equal to len(s).
custom implementation / needs to be installed
Using Python Standard Library string lstrip
Return a copy of the string with leading characters removed. The chars argument is a string specifying the set of characters to be removed. If omitted or None, the chars argument defaults to removing whitespace.
custom implementation / needs to be installed
Repeats a string count times, can be seperated by separator.
custom implementation / needs to be installed
Return the string right justified in a string of length width.
custom implementation / needs to be installed
Using Python Standard Library string rstrip
Return a copy of the string with trailing characters removed. If chars is omitted or None
, whitespace characters are removed. If given and not None
, chars must be a string; the characters in the string will be stripped from the end of the string this method is called on.
custom implementation / needs to be installed
Adds/removes substring to/from string.
custom implementation / needs to be installed
Using Python Standard Library string startswith
Return True if string starts with the prefix, otherwise return False. prefix can also be a tuple of prefixes to look for. With optional start, test string beginning at that position. With optional end, stop comparing string at that position.