![]() |
![]() |
|
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| DelevopersTScript APIPosition |
int Position( const BYTE *search, int start = 0 ); int Position( const char16_t *search, int start = 0 ); int Position( const TVariable &search, int start = 0, int atom = 0 );
| search | The pattern string to match. The TVariable version can match arrays of string and will return the position of the first match. |
| start | This is the byte offset of the start location. If start is negative, the returned string will start at the start 'th character from the end of string and search backward. |
| atom | This is the size of the blocks to match, for astring atom is 1 and for wstring it is 2. |
TVariable var("123");
TVariable pos = var.Position("2");//return - The value is 1
pos = var.Position(Bx00);//return - The value is 3
Copyright © 2009, Ekky Software Pty Ltd.