Harbour Reference Guide

 

GT_STRLEFT()

Find length of prefix of a string

Syntax

GT_StrLeft(<cStr>, <cChars>) --> nLen

Arguments

<cStr> - The input string <cChars> - The set of characters to find

Returns

nLen - The length of the prefix found.

Description

Return the length of the leading segment in the passed string <cStr> that consists solely of the characters in the character set <cChars>.

If no characters in the the search set are found, the function shall return 0
Examples
      ? GT_StrLeft("this is a test", "hsit ")       // prints 8
      ? GT_StrLeft("this is a test", "hit a")       // prints 3
      ? GT_StrLeft("this is a test", "zxy")         // prints 0
Status

Ready

Files

Library is libgt

 




[Source Forge]

Other Docs Categories

Advantage Database RDD
Array
Binary conversion
Classes
Code Block
Console input
Conversion
Conversion Tools
DOS
Data input and output
Database
Database Tools
Date
Dos Tools
Environment
Error recovery
Events
File management
GT
Harbour Tools
Internal
Low Level
Math
Misc
Miscellaneous
Nation
Object manipulation
Operating System Specific
Parameter Checks
String Tools
Strings
TBrowse Method
TBrowse class
Terminal
Time
Utility
Variable Management

 

Last updated on 2001/07/30