If the supplied chain iterator's current character is alphanumeric, place it and all subsequent alphanumic characters into the supplied string. Note the supplied iterator is not advanced by this function.
| Return Type | Function name | Arguments |
|---|---|---|
| uint32_t | TestAlphanum | (hzString&,hzChain::Iter&,) |
Declared in file: hzTextproc.h
Defined in file : hzTextproc.cpp
Function Logic:
Function body:
uint32_t TestAlphanum (hzString& word)hzChain::Iter& ci,
{
// Category: Text Presentation
//
// If the supplied chain iterator's current character is alphanumeric, place it and all subsequent alphanumic characters into the supplied string. Note the
// supplied iterator is not advanced by this function.
//
// Arguments: 1) word The found alphanumeric sequence
// 2) ci The input chain iterator
//
// Returns: Length of alphanumeric sequence
word.Clear() ;
if (ci.eof())
return 0;
if (!IsAlphanum(*ci))
return 0;
hzChain::Iter zi ; // Forward iterator
hzChain W ; // For building word
for (zi = ci ; !zi.eof() && IsAlpha(*zi) ; zi++)
W.AddByte(*zi) ;
if (!W.Size())
return 0;
word = W ;
return word.Length() ;
}