Minor update:
- Move strlcase() from SelectableCore to UtilCore
This commit is contained in:
@@ -25,6 +25,7 @@
|
|||||||
// redA Libraries
|
// redA Libraries
|
||||||
#include "ApplicationCore.h"
|
#include "ApplicationCore.h"
|
||||||
#include "SelectableCore.h"
|
#include "SelectableCore.h"
|
||||||
|
#include "UtilCore.h"
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
@@ -223,13 +223,6 @@ protected:
|
|||||||
// Buffer operations
|
// Buffer operations
|
||||||
virtual bool ProcessInputBuffer( THandle * Handle, bool Force );
|
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:
|
public:
|
||||||
// Life Cycle
|
// Life Cycle
|
||||||
CSelectableBare( const char * Name, const char * Type = TYPE_SELECTABLE );
|
CSelectableBare( const char * Name, const char * Type = TYPE_SELECTABLE );
|
||||||
|
|||||||
10
UtilCore.h
10
UtilCore.h
@@ -9,7 +9,7 @@
|
|||||||
#define REDACORE_UTILCORE_H_
|
#define REDACORE_UTILCORE_H_
|
||||||
|
|
||||||
// Standard C/C++ Libraries
|
// Standard C/C++ Libraries
|
||||||
/* none */
|
#include <ctype.h>
|
||||||
|
|
||||||
// redA Libraries
|
// redA Libraries
|
||||||
/* none */
|
/* none */
|
||||||
@@ -36,6 +36,14 @@ char * BinStrToBytes( const char * Str, const int Len, const char * Separator =
|
|||||||
// Search string data
|
// Search string data
|
||||||
char * StrSearch( const char * Haystack, const char * Needle, const int hLen = 0, const int nLen = 0 );
|
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_ */
|
#endif /* REDACORE_UTILCORE_H_ */
|
||||||
|
|||||||
Reference in New Issue
Block a user