Minor update:
- Move strlcase() from SelectableCore to UtilCore
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
// redA Libraries
|
||||
#include "ApplicationCore.h"
|
||||
#include "SelectableCore.h"
|
||||
#include "UtilCore.h"
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
|
||||
@@ -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 );
|
||||
|
||||
10
UtilCore.h
10
UtilCore.h
@@ -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_ */
|
||||
|
||||
Reference in New Issue
Block a user