TheCommonUtils..::..GetStringSection Method
Retrieves a section of a string given the parameter of this function. Can be used to parse HTML or other string snippets.
Namespace:
nsCDEngine.BaseClassesAssembly: C-DEngine (in C-DEngine.dll)
Syntax
Parameters
- pSource
- Type: String
Source string to be parsed
- pStartPos
- Type: Int32%
Start Position in the string to start searching. After the search the END position will be returned in this parameter to allow continuous search in large texts
- pFrom
- Type: String
Matching patter to seach for
- pTo
- Type: String
Matching end of the pattern to search for. All between the start and end pattern will be returned.
- IgnoreStartEnd
- Type: Boolean
Default: true. If false, the function returns if either pFrom or pTo was not found in the pSource string