Difference between revisions of "Component: Advanced String Functions (Utility)"
Line 22: | Line 22: | ||
==Detailed description== | ==Detailed description== | ||
+ | |||
+ | |||
Line 41: | Line 43: | ||
==Examples== | ==Examples== | ||
+ | |||
+ | |||
Line 47: | Line 51: | ||
''<span style="color:red;">No additional examples</span>'' | ''<span style="color:red;">No additional examples</span>'' | ||
+ | |||
+ | |||
Line 57: | Line 63: | ||
===InsertInto=== | ===InsertInto=== | ||
− | |||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 84: | Line 89: | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
− | |||
===SearchAndReplace=== | ===SearchAndReplace=== | ||
− | |||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 115: | Line 118: | ||
|} | |} | ||
− | + | ===ExplodeToByteArray=== | |
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 148: | Line 151: | ||
|} | |} | ||
− | + | ===FormattedStringFloat=== | |
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 181: | Line 184: | ||
|} | |} | ||
− | + | ===ExplodeToStringArray=== | |
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 214: | Line 217: | ||
|} | |} | ||
− | + | ===ImplodeFromByteArray=== | |
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 242: | Line 245: | ||
|} | |} | ||
− | + | ===Contains=== | |
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 265: | Line 268: | ||
|} | |} | ||
− | + | ===RemoveFrom=== | |
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 293: | Line 296: | ||
|} | |} | ||
− | + | ===PositionOf=== | |
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 321: | Line 324: | ||
|} | |} | ||
− | + | ===ExplodeToINTArray=== | |
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 354: | Line 357: | ||
|} | |} | ||
− | + | ===ImplodeFromStringArray=== | |
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 382: | Line 385: | ||
|} | |} | ||
− | + | ===ImplodeFromFloatArray=== | |
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 415: | Line 418: | ||
|} | |} | ||
− | + | ===ExplodeToFloatArray=== | |
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 448: | Line 451: | ||
|} | |} | ||
− | + | ===FormattedStringINT=== | |
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 476: | Line 479: | ||
|} | |} | ||
− | + | ===ImplodeFromINTArray=== | |
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 503: | Line 506: | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
+ | |||
+ | |||
==Property reference== | ==Property reference== |
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 |