Component: Advanced String Functions (Utility)

From Flowcode Help
Revision as of 14:10, 2 February 2023 by Wiki bot (talk | contribs) (Created page with "{| style="width:50%" |- | width="20%" style="color:gray;" | Author | Matrix TSL |- | width="20%" style="color:gray;" | Version | 1.0 |- | width="20%" style="color:gray...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
Author Matrix TSL
Version 1.0
Category Utility


Advanced String Functions component

A component designed to add more advanced functions to the existing built-in string library.

Component Source Code

Please click here to download the component source project: FC_Comp_Source_AdvancedStringFunctions.fcfx

Please click here to view the component source code (Beta): FC_Comp_Source_AdvancedStringFunctions.fcfx

Detailed description

No detailed description exists yet for this component

Examples

No additional examples


Macro reference

Fc9-comp-macro.png SearchAndReplace
Attempts to find a specific string inside the data string and if found replaces with the provided replacement string. Returns the number of times the search pattern was found. 
Fc9-string-icon.png - STRING StrData
Data string to scan 
Fc9-string-icon.png - STRING StrSearch
String to look for in the data 
Fc9-string-icon.png - STRING StrReplace
String to insert into the data 
Fc9-u16-icon.png - UINT Return


Fc9-comp-macro.png ExplodeToByteArray
Takes an ASCII string and using a delimiter converts it into an array of bytes. Returns the number of values discovered and placed into the DataArray, e.g. "1,2,3,4" would become {1,2,3,4} 
Fc9-string-icon.png - STRING StringInput
Data string e.g. "1,2,3,4" 
Fc9-u8-icon.png - BYTE Delimiter
Delimiting character byte for example ',' 
Fc9-u8-icon.png - BYTE DataArray
Data array to hold the numberic values found 
Fc9-u16-icon.png - UINT MaxCount
Maximum number of values to return 
Fc9-u16-icon.png - UINT Return


Fc9-comp-macro.png ExplodeToStringArray
Takes an ASCII string and using a delimiter converts it into an array of strings. Returns the number of values discovered and placed into the DataArray, e.g. "1,2,3,4" would become {"1","2","3","4"} 
Fc9-string-icon.png - STRING StringInput
Data string e.g. "1,2,3,4" 
Fc9-u8-icon.png - BYTE Delimiter
Delimiting character byte for example ',' 
Fc9-string-icon.png - STRING DataArray
Data array to hold the numberic values found 
Fc9-u16-icon.png - UINT MaxCount
Maximum number of values to return 
Fc9-u16-icon.png - UINT Return


Fc9-comp-macro.png ImplodeFromByteArray
Creates an ASCII string from an array of byte values. Places a delimiter in between each value. e.g. {1,2,3,4} would become "1,2,3,4" 
Fc9-u8-icon.png - BYTE DataArray
 
Fc9-u16-icon.png - UINT Count
Number of values held in the array 
Fc9-u8-icon.png - BYTE Delimiter
Delimiter to add between values 
Fc9-string-icon.png - STRING Return


Fc9-comp-macro.png Contains
Scans a string to see if it contains a specific substring. Returns 1 if found, otherwise returns 0. 
Fc9-string-icon.png - STRING StrData
Data string to scan 
Fc9-string-icon.png - STRING StrMatch
String to look for in the data 
Fc9-bool-icon.png - BOOL Return


Fc9-comp-macro.png PositionOf
Scans a string to see if it contains a specific substring. Returns the location in the string if found, otherwise returns -1. 
Fc9-string-icon.png - STRING StrData
Data string to scan 
Fc9-string-icon.png - STRING StrMatch
String to look for in the data 
Fc9-u16-icon.png - UINT SearchFrom
Starting index for the search, default 0. 
Fc9-s16-icon.png - INT Return


Fc9-comp-macro.png ExplodeToINTArray
Takes an ASCII string and using a delimiter converts it into an array of integers. Returns the number of values discovered and placed into the DataArray, e.g. "1,2,3,4" would become {1,2,3,4} 
Fc9-string-icon.png - STRING StringInput
Data string e.g. "1,2,3,4" 
Fc9-u8-icon.png - BYTE Delimiter
Delimiting character byte for example ',' 
Fc9-u16-icon.png - UINT DataArray
Data array to hold the numberic values found 
Fc9-u16-icon.png - UINT MaxCount
Maximum number of values to return 
Fc9-u16-icon.png - UINT Return


Fc9-comp-macro.png ImplodeFromStringArray
Creates an ASCII string from an array of string values. Places a delimiter in between each value. e.g. {"1","2","3","4"} would become "1,2,3,4" 
Fc9-string-icon.png - STRING DataArray
 
Fc9-u16-icon.png - UINT Count
Number of values held in the array 
Fc9-u8-icon.png - BYTE Delimiter
Delimiter to add between values 
Fc9-string-icon.png - STRING Return


Fc9-comp-macro.png ImplodeFromFloatArray
Creates an ASCII string from an array of float values. Places a delimiter in between each value. e.g. {1.1,2.2,3.3,4.4} would become "1.1,2.2,3.3,4.4" 
Fc9-f32-icon.png - FLOAT DataArray
 
Fc9-u16-icon.png - UINT Count
Number of values held in the array 
Fc9-u8-icon.png - BYTE Delimiter
Delimiter to add between values 
Fc9-u8-icon.png - BYTE Precision
Number of decimal points to add to each float value 
Fc9-string-icon.png - STRING Return


Fc9-comp-macro.png ExplodeToFloatArray
Takes an ASCII string and using a delimiter converts it into an array of floats Returns the number of values discovered and placed into the DataArray, e.g. "1.1,2.2,3.3,4.4" would become {1.1,2.2,3.3,4.4} 
Fc9-string-icon.png - STRING StringInput
Data string e.g. "1,2,3,4" 
Fc9-u8-icon.png - BYTE Delimiter
Delimiting character byte for example ',' 
Fc9-f32-icon.png - FLOAT DataArray
Data array to hold the numberic values found 
Fc9-u16-icon.png - UINT MaxCount
Maximum number of values to return 
Fc9-u16-icon.png - UINT Return


Fc9-comp-macro.png ImplodeFromINTArray
Creates an ASCII string from an array of integer values. Places a delimiter in between each value. e.g. {1,2,3,4} would become "1,2,3,4" 
Fc9-u16-icon.png - UINT DataArray
 
Fc9-u16-icon.png - UINT Count
Number of values held in the array 
Fc9-u8-icon.png - BYTE Delimiter
Delimiter to add between values 
Fc9-string-icon.png - STRING Return



Property reference

Fc9-prop-icon.png Properties