Harbour Reference Guide

 

GT_STRCSPN()

Return length of prefix in string of chars NOT in set.

Syntax

GT_strcspn(<cString>, <cSet>) --> nLength

Arguments

<cString> - The string to find the prefix in <cSet> - The set of characters

Returns

<nLength> - The length of a string upto a character in the set

Description

Return the number of characters in the leading segment of a string that consists solely of characters NOT in the set.
Examples
      ? GT_strcspn("this is a test", "as ")      // prints 3
      ? GT_strcspn("this is a test", "elnjpq")   // prints 11
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