stringToBVector

 

 

Overview

The stringToBVector function separates a String {string} into several substrings using the key {key} as the separator. The result substrings are collected to form an Object Vector and the Object Vector is returned. The stringToBVector has an optional argument {true}, which, if present, will treat the {key} argument as a collection of keys rather than a single key or pattern. In other words if {true} is present, any character in the {key} will cause a substring break.

Usage

The stringToBVector function's ability to separate a String into several substrings makes the function ideally suitable for tokenizing a String. Afterwards, each substring in the Object Vector, can be processed as tokens.

 

Syntax


Expression:

(stringToBVector string key)

(stringToBVector string key true)

(stringToBVector text key )

(stringToBVector text key true)


Arguments Name Type Description
Argument:stringString or Text Target String or Text
Argument:keyString Text Character The break string or character
Argument:trueBoolean Optional. If present, treat the key argument as a collection of key characters, if not present, treat the key argument as the key string.

Returns:

Returns an Object Vector



 

Examples

Here are a number of links to Lambda coding examples which contain this instruction in various use cases.

 

Argument Types

Here are the links to the data types of the function arguments.

String Vector Text Character
ObjVector

Here are also a number of links to functions having arguments with any of these data types.

*= addMethod appendWriteln append
apply balance binaryInsert binaryNand
binaryNor binaryNot binaryNxor binarySearch
bitToNumberVector bitwiseAnd bitwiseNand bitwiseNor
bitwiseNot bitwiseNxor bitwiseOr bitwiseShiftLeft
bitwiseShiftRight bitwiseXor boolean cadd
ccompareEQ ccompareGE ccompareGT ccompareLE
ccompareLT ccompareNE cdiv cdr
char character clean closeLog
cmod cmul code compareEQ
compareGE compareGT compareLE compareLT
compareNE compare comparison compress
cons copy count csub
date day days360 debugBrowsableProcs
debugDetective debugEval delete dimension
disassemble display downcase encode
evalInSyncLocalContext eval exportCsv exportSbf
exportTab fdisplay fileClose fileCopy
fileDir fileDisplay fileEraseDir fileErase
fileExists fileMakeDir fileOpen fileReadAll
fileReadRecord fileRead fileSizeOf fileWriteAll
fileWrite filewriteln findBlock find
freeBlock getSymbolTable globalBinding hashString
hour importCsv importSbf importTab
insert inside inspect integer
isAtom isBitVector isBoolean isByteVector
isCharAlphabetic isCharAlphanumeric isCharLowercase isCharName
isCharNumeric isCharUppercase isCharWhitespace isChar
isCharacter isComplex isDate isDictionary
isDirectory isEqual isError isFloatVector
isIdentical isInside isIntegerVector isInteger
isLambda isMatrix isMember isMoney
isNumberMatrix isNumberVector isNumber isObjectVector
isObject isPair isPcodeVector isString
isStructure isSymbol isText isType
isVector julian left length
list loadModule loadWorkspace macroReplace
makeGramMatrix makeQuotedList makeQuotedSymbol map
mapc member mid minute
money month new number
objectToList objectToMatrix objectToNumMatrix objectToNumVector
objectToVector offset openLog pair
parent parse pointer product
qt rank refAttributes refValues
ref remove replace rept
resize reverse right run
saveImmediate saveModule saveObject saveRepository
saveWorkspace second setAttributes setBlock
setCar setCdr setLastCdr set
setf setq sizeof sort
sql stringCiEQ stringCiGE stringCiGT
stringCiLE stringCiLT stringCiNE stringFill
stringToBVector stringToVector string submit
substitute substringCiEQ substringCiGE substringCiGT
substringCiLE substringCiLT substringCiNE substringEQ
substringFill substringGE substringGT substringLE
substringLT substringNE substring svmRegression
symbolToTypeCode symbol system text
time trim type uniqueInsert
upcase vectorBinaryInnerProduct vectorBipolarInnerProduct vectorCosineInnerProduct
vectorCubeInnerProduct vectorExpInnerProduct vectorFill vectorInnerProduct
vectorLogInnerProduct vectorQuartInnerProduct vectorQuintInnerProduct vectorSigmoidInnerProduct
vectorSineInnerProduct vectorSquareInnerProduct vectorTanInnerProduct vectorTanhInnerProduct
writelg writeln year

Analytic Information Server (AIS)

AIS Component Systems

  • Smartbase Engine
  • QT C++ Libraries
  • MySQL Relational Database
  • AIS Lisp Libraries
  • Rapid Analytic Demo IDE