Namespace: Consultingwerk
Class 
Tokenizer Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object

File:Tokenizer
Purpose:A class that supports splitting a CHARACTER string into
tokens that might be quoted or not
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Fri Mar 16 14:40:25 CET 2012
Purpose: Splits a string into individual tokens
Notes: When plKeepQuotes is passed as TRUE, then leading ( and trailing ) on
tokens will be added to the CharacterList as separate Tokens as it's expected
that this will simplify the interpretation of a Query String



Top Method Summary
Options Name Purpose
+ Consultingwerk.Framework.Collections.CharacterList Tokenize (character) Splits a string into individual tokens
+ Consultingwerk.Framework.Collections.CharacterList Tokenize (character, logical) Splits a string into individual tokens
+ Consultingwerk.Framework.Collections.CharacterList Tokenize (character, logical, character) Splits a string into individual tokens


Method Detail
Top

PUBLIC Consultingwerk.Framework.Collections.CharacterList Tokenize (character)

Purpose: Splits a string into individual tokens
Notes:

Parameters:
pcString CHARACTER
The string to split into tokens
Returns Consultingwerk.Framework.Collections.CharacterList
A CharacterList of individual tokens
Top

PUBLIC Consultingwerk.Framework.Collections.CharacterList Tokenize (character, logical)

Purpose: Splits a string into individual tokens
Notes: When plKeepQuotes is passed as TRUE, then leading ( and trailing ) on
tokens will be added to the CharacterList as separate Tokens as it's expected
that this will simplify the interpretation of a Query String

Parameters:
pcString CHARACTER
The string to split into tokens
plKeepQuotes LOGICAL
True to leave the quotes in the tokens, false to omit quotes
Returns Consultingwerk.Framework.Collections.CharacterList
A CharacterList of individual tokens
Top

PUBLIC Consultingwerk.Framework.Collections.CharacterList Tokenize (character, logical, character)

Purpose: Splits a string into individual tokens
Notes: When plKeepQuotes is passed as TRUE, then leading ( and trailing ) on
tokens will be added to the CharacterList as separate Tokens as it's expected
that this will simplify the interpretation of a Query String

Parameters:
pcString CHARACTER
The string to split into tokens
plKeepQuotes LOGICAL
True to leave the quotes in the tokens, false to omit quotes
pcOtherDelimiters CHARACTER
A single character string containing other characters that are used as additional token delimiters, e.g. ",="
Returns Consultingwerk.Framework.Collections.CharacterList
A CharacterList of individual tokens


©2006-2023 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       15.04.2024 06:16:21