Difference between revisions of "StringPos"
Jump to navigation
Jump to search
imported>Speedo (New page: {{Beta}} A command for Pluggy. '''Syntax:''' (Position:long) StringPos SearchForStringID:long SourceStringID:long ''Start:long'' Returns the position of the first...) |
imported>Speedo (update syntax) |
||
Line 5: | Line 5: | ||
'''Syntax:''' | '''Syntax:''' | ||
(Position:long) StringPos SearchForStringID:long SourceStringID:long ''Start:long'' | (Position:long) StringPos SearchForStringID:long SourceStringID:long ''Start:long'' | ||
''IgnoreCase:short'' | |||
Note: All arguments should be on the same line. | |||
Returns the position of the first occurrence of ''SearchFor'' in ''Source'', starting the comparison at the position specified by ''Start''. If no match is found, it returns 0. | Returns the position of the first occurrence of ''SearchFor'' in ''Source'', starting the comparison at the position specified by ''Start''. If no match is found, it returns 0. | ||
*If ''Start'' is not specified, the search will begin at the beginning of the source string. | *If ''Start'' is not specified, the search will begin at the beginning of the source string. | ||
*If ''IgnoreCase'' is 1, the search will not be case sensitive. | |||
[[Category: Functions (Pluggy)]] | [[Category: Functions (Pluggy)]] | ||
[[Category: String Functions (Pluggy)]] | [[Category: String Functions (Pluggy)]] |
Revision as of 10:50, 10 March 2008
Beta Function
This function has not been fully tested yet, and is not ready to be used in a released mod. It may not have the same function in later versions, may require the script to be recompiled, or simply may be removed. Use for testing purposes only until the author of the function says otherwise.
A command for Pluggy.
Syntax:
(Position:long) StringPos SearchForStringID:long SourceStringID:long Start:long IgnoreCase:short
Note: All arguments should be on the same line.
Returns the position of the first occurrence of SearchFor in Source, starting the comparison at the position specified by Start. If no match is found, it returns 0.
- If Start is not specified, the search will begin at the beginning of the source string.
- If IgnoreCase is 1, the search will not be case sensitive.