String Objects
This script allows you to replace a portion of a string at a given position.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (59): Replacing a portion of a string Download |
This script go thru directory tree and looks for files of specified pattern, and then replace in those files a string with new one, overwriting old file without backups.
Platforms: Windows, Python,
License: Freeware | Download (58): Replace occurrence of string in files Download |
This script shows a simple (but not hopelessly fragile) approach for string substitution.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (65): String substitution shorty Download |
Custom String Representations of Bases script allows you to make a number shorter(like timestamps in URLs).
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (62): Custom String Representations of Bases Download |
Align text string script aligns string with spaces between words to fit specified width.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (61): Align text string Download |
This script takes a string and returns a list containing the n-sized pieces of the string.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (58): Split String into n-size pieces Download |
Missing string functions script introduces some functions to help you manage international text.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (58): Missing string functions Download |
Hash a string script hashes a string (preferably your name) to an alter ego description.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (57): Hash a string Download |
This script allows you to generate all the string described by a pattern passed on the command-line.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (58): Simple pattern-based string generator Download |
This script represents a way to parse command line from user provided string or try to get the original Argv from Windows OS Platform.
Platforms: Windows, Python,
License: Freeware | Download (58): Parse Command Line String from CommandLine Download |
For quick-and-dirty processing of Python source files, it can be convenient to have a regular expression that matches Python string literals. This script provides such a regular expression. The example use case above shows how it could be used to rename a variable in a P shows hoe.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (59): Regular expression for python string literals Download |
Generic cacheable value objects superclass script is a superclass for cache value objects by its constructor arguments.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (52): Generic cacheable value objects superclass Download |
Sometimes you would want to create objects from various classes based on some condition (without using eval()). For example when parsing X(HT)ML files you want to handle some tags using specific classes. This script is an example in this sense.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (61): Create objects from variable class names Download |
If you want to implement stateful objects, which have a different set of behaviours according to what state they are in, this requirement can be achieved with the use of mix-ins. A mix-in is a class which is dynamically inherited by an object. The methods of the mix-in class are thus accessible...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (50): Stateful Objects use Mix-ins to define behaviour Download |
This script implements a string searching algorithm based upon Boyer-Moore string searching, which is considered one of the most efficient string searching algorithms. Boyer-Moore-Horspool only uses the bad-suffix window for matching and is therefore simpler to implement and faster than normals...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (60): Boyer-Moore-Horspool string searching Download |
Reverse a string script allows you to reverse a string.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (57): Reverse a string Download |
Pseudo-random string to float conversion script converts strings to floats in the range [0, 1), using a hash function.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (51): Pseudo-random string to float conversion Download |
The main purpose of these functions are to allow encoding a string from base 256 to a special base 255. The function view the strings as numbers and simply change what base they are written in. This is not recommended for very long strings; otherwise, the encoding and decoding process can take a...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (53): Encoding A String Download |
This script is a queue data structure, for string data only, which looks like a File object. This class takes care of the list.append and .join mess, which is needed for fast string concatenation.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (53): A queue for string data Download |
This class provides a lightweight way to group arbitrary objects together into disjoint sets when a full-blown graph data structure would be overkill. Objects can be joined using .join(), tested for connectedness using joined(), and all disjoint sets can be retreived using get(). The objects...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (58): Grouping objects into disjoint sets Download |