Maple Professionel
Maple Académique
Maple Edition Étudiant
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professionel
MapleSim Académique
Maple T.A. - Suite d'examens de classement
Maple T.A. MAA Placement Test Suite
Möbius - Didacticiels de mathématiques en ligne
Machine Design / Industrial Automation
Aéronautique
Ingénierie des véhicules
Robotics
Energie
System Simulation and Analysis
Model development for HIL
Modélisation du procédé pour la conception de systèmes de contrôle
Robotics/Motion Control/Mechatronics
Other Application Areas
Enseignement des mathématiques
Enseignement de l’ingénierie
Enseignement secondaire et supérieur (CPGE, BTS)
Tests et évaluations
Etudiants
Modélisation financière
Recherche opérationnelle
Calcul haute performance
Physique
Webinaires en direct
Webinaires enregistrés
Agenda des évènements
Forum MaplePrimes
Blog Maplesoft
Membres Maplesoft
Maple Ambassador Program
MapleCloud
Livres blancs techniques
Bulletin électronique
Livres Maple
Math Matters
Portail des applications
Galerie de modèles MapleSim
Cas d'Etudes Utilisateur
Exploring Engineering Fundamentals
Concepts d’enseignement avec Maple
Centre d’accueil utilisateur Maplesoft
Centre de ressources pour enseignants
Centre d’assistance aux étudiants
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