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[WordStart] - locate the beginning of a word
StringTools[WordEnd] - locate the end of a word
StringTools[WordContaining] - return the word containing a given index
Calling Sequence
WordStart( s, index )
WordEnd( s, index )
WordContaining( s, index )
Parameters
s
-
Maple string
index
integer; a valid index into the string s
Description
The WordStart command returns the index of the beginning (first letter) of the word containing the index index, if any. If the second argument index does not occur in a word in the string s, then the value is returned.
The WordEnd command returns the index of the end (last letter) of the word containing the index index, if any. If the second argument index does not occur in a word in the string s, then the value is returned.
The WordContaining command returns the word containing the index index, if index lies within a word in the string s, or the empty string , otherwise.
For all three commands, the second argument index must be a valid index into the string presented as the first argument.
If the index index lies within a word in the string s, then WordContaining( s, index ) = s[ WordStart( s, index ) .. WordEnd( s, index ) ].
Examples
See Also
string, StringTools, StringTools[Split]
Download Help Document