strings/ strsplit.bi

Summary
strings/ strsplit.bi
LicenseCopyright © 2009, FreeBASIC Extended Library Development Group
ext. strings
Functions
ExplodeSplits a string into an array.
JoinJoins together a string array.
SplitSplits a string into an array.
Split!!WRITE ME!! 

License

Copyright © 2009, FreeBASIC Extended Library Development Group

Distributed under the FreeBASIC Extended Library Group license.  See accompanying file LICENSE.txt or copy at http://code.google.com- /p- /fb-extended-lib- /wiki- /License

ext. strings

Summary
Functions
ExplodeSplits a string into an array.
JoinJoins together a string array.
SplitSplits a string into an array.
Split!!WRITE ME!! 

Functions

Explode

declare function Explode(byref subject as const string,
byref delimit as const string,
res() as string) as integer

Splits a string into an array.

Parameters

subjectthe string to split up.
delimitThe delimiter to use when splitting the array, only first character is used.
res()string array that results will be passed into.

Returns

Integer number of delimited strings found.

Join

declare function Join (subject() as const string,  
byref glue as const string =  " ") as string

Joins together a string array.

Parameters

subject()array of strings to join together.
(-*glue*)optional “glue” to use between strings, defaults to a single space

Returns

The assembled string.

Split

declare function Split overload (byref subject as const string,
result() as string,
byref delimiter as const string,
byval limit as integer) as integer

Splits a string into an array.

Parameters

subjectthe string to split up.
result()string array that results will be passed into.
delimiterThe delimiter to use when splitting the array.
limitthe maximum number of substrings to split to.

Returns

Integer number of delimited strings found.

Split

declare function Split (subject() as const string,
result() as string,
byref delimiter as const string,
byval limit as integer) as integer

!!WRITE ME!!  How do i work?

Parameters

subject()array
result()results array
delimiterdelimiter to split strings by.
limitmaximum number of splits.
declare function Explode(byref subject as const string,
byref delimit as const string,
res() as string) as integer
Splits a string into an array.
declare function Join (subject() as const string,  
byref glue as const string =  " ") as string
Joins together a string array.
declare function Split overload (byref subject as const string,
result() as string,
byref delimiter as const string,
byval limit as integer) as integer
Splits a string into an array.