str.find...
- method uint str.findch( uint offset, uint symbol, uint fromend )
- method uint str.findch( uint symbol )
- method uint str.findchr( uint symbol )
- method uint str.findchfrom( uint symbol, uint offset )
- method uint str.findchnum( uint symbol, uint i )
Find the character in the string.
uint offset,
uint symbol,
uint fromend
)
Parameters
offset | The offset to start searching from. |
symbol | Search character. |
fromend | If it equals 1, the search will be carried out from the end of the string. |
Return value
The offset of the character if it is found. If the character is not found, the length of the string is returned.
str.findch
Find the character from the beginning of the string.
uint symbol
)
Parameters
symbol | Search character. |
str.findchr
Find the character from the end of the string.
uint symbol
)
Parameters
symbol | Search character. |
str.findchfrom
Find the character from the specified offset in the string.
uint symbol,
uint offset
)
Parameters
symbol | Search character. |
offset | The offset to start searching from. |
str.findchnum
Find the #glt(i) character in the string.
uint symbol,
uint i
)
Parameters
symbol | Search character. |
i | The number of the character starting from 1. |
Related links | Source |