Maple für Professional
Maple für Akademiker
Maple für Studenten
Maple Personal Edition
Maple Player
Maple Player für iPad
MapleSim für Professional
MapleSim für Akademiker
Maple T.A. - Testen & beurteilen
Maple T.A. MAA Placement Test Suite
Möbius - Online-Courseware
Machine Design / Industrial Automation
Luft- und Raumfahrt
Fahrzeugtechnik
Robotics
Energiebranche
System Simulation and Analysis
Model development for HIL
Anlagenmodelle für den Regelungsentwurf
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematikausbildung
Technik
Allgemein- und berufsbildende Schulen
Testen und beurteilen
Studierende
Finanzmodelle
Betriebsforschung
Hochleistungsrechnen
Physik
Live-Webinare
Aufgezeichnete Webinare
Geplante Veranstaltungen
MaplePrimes
Maplesoft-Blog
Maplesoft-Mitgliedschaft
Maple Ambassador Program
MapleCloud
Technische Whitepapers
E-Mail Newsletters
Maple-Bücher
Math Matters
Anwendungs-Center
MapleSim Modell-Galerie
Anwenderberichte
Exploring Engineering Fundamentals
Lehrkonzepte mit Maple
Maplesoft Welcome-Center
Resource-Center für Lehrer
Help-Center für Studierende
StringTools[IsPrefix] - test for an initial substring
StringTools[IsSuffix] - test for a terminal substring
Calling Sequence
IsPrefix( s, t )
IsSuffix( s, t )
Parameters
s, t
-
Maple strings
Description
The IsPrefix( s, t ) command determines whether s is a prefix (initial substring) of t.
The string s is a prefix of the string t if , for some integer , or s is the empty string.
If s is a prefix of t, IsPrefix returns true. Otherwise, false is returned.
Note: The IsPrefix( s, t ) command is equivalent to the expression
member( s, [ seq( t[ 1 .. i ], i = 0 .. length( t ) ) ] ).
The IsSuffix( s, t ) command determines whether s is a suffix (terminal substring) of t.
If s is a suffix of t, IsSuffix returns true. Otherwise, false is returned.
Note: The IsSuffix( s, t ) command is equivalent to the expression
member( s, [ seq( t[ i .. -1 ], i = 1 .. 1 + length( t ) ) ] )
Thread Safety
The StringTools[IsPrefix] and StringTools[IsSuffix] commands are thread-safe as of Maple 15.
For more information on thread safety, see index/threadsafe.
Examples
See Also
length, member, seq, string, StringTools, StringTools[Drop], StringTools[Random], StringTools[Select], StringTools[Take]
Download Help Document