Software: Apache/2.0.54 (Unix) mod_perl/1.99_09 Perl/v5.8.0 mod_ssl/2.0.54 OpenSSL/0.9.7l DAV/2 FrontPage/5.0.2.2635 PHP/4.4.0 mod_gzip/2.0.26.1a uname -a: Linux snow.he.net 4.4.276-v2-mono-1 #1 SMP Wed Jul 21 11:21:17 PDT 2021 i686 uid=99(nobody) gid=98(nobody) groups=98(nobody) Safe-mode: OFF (not secure) /usr/doc/slang-1.4.5/html/ drwxr-xr-x | |
| Viewing file: Select action/file-type: 7. Searching Functions
The S-Lang library incorporates two types of searches: Regular expression pattern matching and ordinary searching.
7.1 Regular Expressions
!!! No documentation available yet !!!
7.2 Simple Searches
The routines for ordinary searching are defined in the
The searches can go in either a forward or backward direction and can either be case or case insensitive. The region that is searched may contain null characters (ASCII 0) however, the search string cannot in the current implementation. In addition the length of the string to be found is currently limited to 256 characters. Before searching, the function
7.3 Initialization
The function
Here key is the string to be searched for. dir specifies the direction
of the search: a value greater than zero is used for searching forward and
a value less than zero is used for searching backward. The parameter
case_sens specifies whether the search is case sensitive or not. A
non-zero value indicates that case is important. st is a pointer to a
structure of type SLsearch_Type defined in "slang.h". This structure is
initialized by this routine and must be passed to SLsearch when the
search is actually performed.
This routine returns the length of the string to be searched for.
7.4 SLsearch
This function performs the search defined by a previous call to
It returns a pointer to the start of the match if successful or it will
return
Next Previous Contents |
:: Command execute :: | |
--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0044 ]-- |