Difference between revisions of "Component: Advanced String Functions (Utility)"
Line 22: | Line 22: | ||
==Detailed description== | ==Detailed description== | ||
+ | |||
+ | |||
Line 43: | Line 45: | ||
==Examples== | ==Examples== | ||
+ | |||
+ | |||
Line 51: | Line 55: | ||
''<span style="color:red;">No additional examples</span>'' | ''<span style="color:red;">No additional examples</span>'' | ||
+ | |||
+ | |||
Line 89: | Line 95: | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
+ | |||
===SearchAndReplace=== | ===SearchAndReplace=== | ||
Line 117: | Line 124: | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
+ | |||
===ExplodeToByteArray=== | ===ExplodeToByteArray=== | ||
Line 150: | Line 158: | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
+ | |||
===FormattedStringFloat=== | ===FormattedStringFloat=== | ||
Line 183: | Line 192: | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
+ | |||
===ExplodeToStringArray=== | ===ExplodeToStringArray=== | ||
Line 216: | Line 226: | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
+ | |||
===ImplodeFromByteArray=== | ===ImplodeFromByteArray=== | ||
Line 244: | Line 255: | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
+ | |||
===Contains=== | ===Contains=== | ||
Line 267: | Line 279: | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
+ | |||
===RemoveFrom=== | ===RemoveFrom=== | ||
Line 295: | Line 308: | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
+ | |||
===PositionOf=== | ===PositionOf=== | ||
Line 323: | Line 337: | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
+ | |||
===ExplodeToINTArray=== | ===ExplodeToINTArray=== | ||
Line 356: | Line 371: | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
+ | |||
===ImplodeFromStringArray=== | ===ImplodeFromStringArray=== | ||
Line 384: | Line 400: | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
+ | |||
===ImplodeFromFloatArray=== | ===ImplodeFromFloatArray=== | ||
Line 417: | Line 434: | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
+ | |||
===ExplodeToFloatArray=== | ===ExplodeToFloatArray=== | ||
Line 450: | Line 468: | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
+ | |||
===FormattedStringINT=== | ===FormattedStringINT=== | ||
Line 478: | Line 497: | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
+ | |||
===ImplodeFromINTArray=== | ===ImplodeFromINTArray=== | ||
Line 506: | Line 526: | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
+ | |||
Revision as of 11:38, 3 February 2023
Author | Matrix TSL |
Version | 1.0 |
Category | Utility |
Contents
- 1 Advanced String Functions component
- 2 Component Source Code
- 3 Detailed description
- 4 Examples
- 5 Macro reference
- 5.1 InsertInto
- 5.2 SearchAndReplace
- 5.3 ExplodeToByteArray
- 5.4 FormattedStringFloat
- 5.5 ExplodeToStringArray
- 5.6 ImplodeFromByteArray
- 5.7 Contains
- 5.8 RemoveFrom
- 5.9 PositionOf
- 5.10 ExplodeToINTArray
- 5.11 ImplodeFromStringArray
- 5.12 ImplodeFromFloatArray
- 5.13 ExplodeToFloatArray
- 5.14 FormattedStringINT
- 5.15 ImplodeFromINTArray
- 6 Property reference
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
Explode
The explode functions use a delimiter to split a string up into an array.
For example "1,2,3,4" using the delimiter ',' would create {1,2,3,4}.
Implode
The implode functions do the reverse and create a string from an array.
for example {1,2,3,4} using the delimiter ',' would create "1,2,3,4".
All of the string functions assume that your string variable is large enough to store the data being passed into it. Overflowing the bounds of the string could lead to RAM corruption which could effect the operation of your program.
Examples
No additional examples
Macro reference
InsertInto
SearchAndReplace
ExplodeToByteArray
FormattedStringFloat
ExplodeToStringArray
ImplodeFromByteArray
Contains
RemoveFrom
PositionOf
ExplodeToINTArray
ImplodeFromStringArray
ImplodeFromFloatArray
ExplodeToFloatArray
FormattedStringINT
ImplodeFromINTArray
Property reference
![]() |
Properties |