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[GenerateIdentifier] - create an identifier sequence generator
Calling Sequence
GenerateIdentifier( opts )
Parameters
opts
-
(optional) options
Description
The GenerateIdentifier command returns a procedure that, when invoked repeatedly, returns strings for use as identifiers.
Identifiers are, by default, formed by using the string as a base, and appending integer suffices until the length of the resulting string exceeds a specified maximum length.
The default maximum length is .
The maximum length can be changed by specifying the maxlen = LEN option, which takes a positive integer value LEN.
The default base string can be changed by specifying the base = STRING option.
In this case, the value of STRING will be used instead of .
The value of the base string must not exceed the maximum identifier length.
An alternative system of generating names can be invoked by using the option.
In this form, the returned generator forms strings by using maximal prefices of the given string, replacing suffices up to the maximum identifier length with digit sequences on subsequent calls.
The maximal prefix of the STRING used is shortened as long as at least one character from the string remains.
When no more unique strings not exceeding the maximum length can be generated, the returned generator raises the exception "no more identifiers".
Examples
Error, (in StringTools:-GenerateIdentifier) base for identifiers is too long
Error, (in gen) no more identifiers
See Also
string, StringTools
Download Help Document