Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
Overview of the StringTools Package
Calling Sequence
StringTools[command](arguments)
command(arguments)
Description
The StringTools package is a collection of optimized string manipulation utilities.
Each command in the StringTools package can be accessed by using either the long form or the short form of the command name in the command calling sequence.
As the underlying implementation of the StringTools package is a module, it is also possible to use the form StringTools:-command to access a command from the package. For more information, see Module Members.
List of StringTools Package Commands
The following is a list of available commands.
Case Conversions
CamelCase
Capitalize
LowerCase
OtherCase
UpperCase
Character Class Tests
Has
HasAlpha
HasAlphaNumeric
HasASCII
HasBinaryDigit
HasControlCharacter
HasDigit
HasGraphic
HasHexDigit
HasIdentifier
HasIdentifier1
HasLower
HasOctalDigit
HasPunctuation
HasSpace
HasUpper
HasVowel
IsAlpha
IsAlphaNumeric
IsASCII
IsBinaryDigit
IsControlCharacter
IsDigit
IsGraphic
IsHexDigit
IsIdentifier
IsIdentifier1
IsLower
IsOctalDigit
IsPrintable
IsPunctuation
IsSpace
IsUpper
IsVowel
Combinatorics on Words
Border
BorderArray
BorderLength
Fibonacci
IsConjugate
IsEodermdrome
IsMonotonic
IsPalindrome
IsPeriod
IsPermutation
IsPrimitive
LyndonFactors
MaximalPalindromicSubstring
MinimumConjugate
MonotonicFactors
Overlap
PatternCanonicalForm
PatternEquivalent
Period
PrimitiveRoot
ThueMorse
Comparisons
Compare
CompareCI
IsPrefix
IsSuffix
LeftRecursivePathOrder
LexOrder
RevLexOrder
RightRecursivePathOrder
ShortLexOrder
ShortRevLexOrder
Constructors
Fill
Generate
Iota
Random
Randomize
Repeat
Tabulate
Date and Time Procedures
FormatTime
ParseTime
Metrics and Distances
EditDistance
HammingDistance
Levenshtein
PrefixDistance
SuffixDistance
Routines for Manipulating English Text
Anagrams
IsAnagram
IsBalanced
Readability
Sentences
Stem
SyllableLength
WordContaining
WordCount
WordEnd
Words
WordStart
WrapText
Filter Operations
AndMap
CharacterMap
Drop
Map
OrMap
Remove
Select
SelectRemove
Take
Iterators
LeftFold
RightFold
Pattern Matching and Text Searching
ApproximateSearch
ApproximateSearchAll
FirstFromLeft
FirstFromRight
HammingSearch
HammingSearchAll
PatternDictionary
PatternDictionary[Create]
PatternDictionary[Factors]
PatternDictionary[Get]
PatternDictionary[Search]
PatternDictionary[Size]
RegMatch
RegSplit
RegSub
RegSubs
Search
SearchAll
Substitute
SubstituteAll
WildcardMatch
Random Strings
String Sorting
IsSorted
Sort
Unique
String Homology
CommonPrefix
CommonSuffix
IsSubSequence
LongestCommonSubSequence
LongestCommonSubString
Metaphone
SimilarityCoefficient
Soundex
Statistics
ArithmeticMean
Entropy
IndexOfCoincidence
Kasiski
MaxChar
MinChar
Repeats
Transformations
Exchange
GenerateIdentifier
Permute
Reverse
Rotate
Shift
SortPermutation
Whitespace Handling Procedures
Center
Chomp
Chop
DeleteSpace
ExpandTabs
Fence
Indent
MatchFence
PadLeft
PadRight
Squeeze
Trim
TrimLeft
TrimRight
Miscellaneous Routines
CaseJoin
CaseSplit
Char
CharacterFrequencies
Compress
CountCharacterOccurrences
Decode
Delete
Encode
Escape
ExpandCharacterClass
Explode
FormatMessage
FromByteArray
Group
Hash
Implode
Insert
Join
Length
LengthSplit
NGrams
NthWord
Ord
Split
StringBuffer
StringSplit
SubString
Support
ToByteArray
Uncompress
Visible
The commands in the StringTools package accept symbols in place of strings, whenever possible. However, values returned by commands in the StringTools package are always of type string (rather than symbol), even when the input is a symbol. (Some StringTools procedures return other kinds of values, such as numerics, or other data structures like lists, however.)
Note that, for portability, all collation and character class tests and conversions are performed in the C (POSIX) locale. For definitions of the various character classes recognized by the package, see the corresponding character class test help page (for example, StringTools[IsLower]).
To display the help page for a particular StringTools commands, see Getting Help with a Command in a Package.
See Also
help, list, module, numerics, string, symbol, UsingPackages, with
Download Help Document