Minor update:

- Move strlcase() from SelectableCore to UtilCore
This commit is contained in:
Charl Wentzel
2019-09-08 08:13:03 +02:00
parent cff2d2712a
commit aa86837e93
3 changed files with 10 additions and 8 deletions

View File

@@ -25,6 +25,7 @@
// redA Libraries
#include "ApplicationCore.h"
#include "SelectableCore.h"
#include "UtilCore.h"
//---------------------------------------------------------------------------

View File

@@ -223,13 +223,6 @@ protected:
// Buffer operations
virtual bool ProcessInputBuffer( THandle * Handle, bool Force );
// Convert string to lower case
inline char * strlcase( char * Str ) {
for (char * Ch = Str; *Ch; Ch++ )
*Ch = tolower(*Ch);
return Str;
}
public:
// Life Cycle
CSelectableBare( const char * Name, const char * Type = TYPE_SELECTABLE );

View File

@@ -9,7 +9,7 @@
#define REDACORE_UTILCORE_H_
// Standard C/C++ Libraries
/* none */
#include <ctype.h>
// redA Libraries
/* none */
@@ -36,6 +36,14 @@ char * BinStrToBytes( const char * Str, const int Len, const char * Separator =
// Search string data
char * StrSearch( const char * Haystack, const char * Needle, const int hLen = 0, const int nLen = 0 );
// Convert string to lower case
inline char * strlcase( char * Str ) {
for (char * Ch = Str; *Ch; Ch++ )
*Ch = tolower(*Ch);
return Str;
}
//---------------------------------------------------------------------------
#endif /* REDACORE_UTILCORE_H_ */