Overview of the StringTools Package - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Names and Strings : StringTools Package : StringTools

Overview of the StringTools Package

 

Calling Sequence

Description

List of StringTools Package Commands

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

IsDerangement

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

Repeat

Tabulate

 

 

  

 

  

Date and Time Procedures

FormatTime

ParseTime

 

 

  

 

  

Metrics and Distances

EditDistance

HammingDistance

Levenshtein

PrefixDistance

SuffixDistance

 

 

 

  

 

  

Routines for Manipulating English Text

Anagrams

CamelCase

IsAnagram

IsBalanced

Readability

Sentences

Stem

SyllableLength

WordContaining

WordCount

WordEnd

Words

WordStart

WrapText

 

 

  

 

  

Filter Operations

AndMap

CharacterMap

Drop

Map

OrMap

Remove

Select

SelectRemove

Snarf

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

Random

 

 

 

  

 

  

String Sorting

IsSorted

Sort

Unique

 

  

 

  

String Homology

CommonPrefix

CommonSuffix

IsSubSequence

Levenshtein

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

DifferencePositions

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

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam