Ignore:
Timestamp:
Mar 17, 2024, 8:36:08 AM (8 weeks ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
057608a
Parents:
42422fb
Message:

remove isspace-like routines for C arrays, and replace with general checkif routine

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/stdlib.hfa

    r42422fb r8f650f0  
    1010// Created On       : Thu Jan 28 17:12:35 2016
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Fri Mar 15 18:47:26 2024
    13 // Update Count     : 792
     12// Last Modified On : Sun Mar 17 08:25:31 2024
     13// Update Count     : 796
    1414//
    1515
     
    293293//---------------------------------------
    294294
    295 // Cannot overload with singular (isspace) counterparts because they are macros.
    296 
    297 bool isalnums( const char s[] );
    298 bool isalphas( const char s[] );
    299 bool iscntrls( const char s[] );
    300 bool isdigits( const char s[] );
    301 bool isgraphs( const char s[] );
    302 bool islowers( const char s[] );
    303 bool isprints( const char s[] );
    304 bool ispuncts( const char s[] );
    305 bool isspaces( const char s[] );
    306 bool isblanks( const char s[] );
    307 bool isuppers( const char s[] );
    308 bool isxdigits( const char s[] );
     295// Check if all string characters are a specific kind, e.g., checkif( s, isblank )
     296bool checkif( const char s[], int (* kind)( int ) );
     297bool checkif( const char s[], int (* kind)( int, locale_t ), locale_t locale );
    309298
    310299//---------------------------------------
Note: See TracChangeset for help on using the changeset viewer.