toLower
This commit is contained in:
parent
435fc7c1cc
commit
2fe21974f4
2 changed files with 9 additions and 2 deletions
|
@ -19,7 +19,7 @@
|
||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
// DEALINGS IN THE SOFTWARE.
|
// DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
// $Id: StringUtil.cc,v 1.11 2002/08/14 22:43:30 fluxgen Exp $
|
// $Id: StringUtil.cc,v 1.12 2002/09/15 09:40:51 fluxgen Exp $
|
||||||
|
|
||||||
#include "StringUtil.hh"
|
#include "StringUtil.hh"
|
||||||
|
|
||||||
|
@ -133,4 +133,9 @@ int getStringBetween(std::string& out, const char *instr, const char first, cons
|
||||||
return (j+1+total_add);
|
return (j+1+total_add);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void toLower(char * const conv) {
|
||||||
|
for (int byte_pos = 0; byte_pos < strlen(conv); ++byte_pos)
|
||||||
|
conv[byte_pos] = tolower(conv[byte_pos]);
|
||||||
|
}
|
||||||
|
|
||||||
}; //end namespace StringUtil
|
}; //end namespace StringUtil
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
// DEALINGS IN THE SOFTWARE.
|
// DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
//$Id: StringUtil.hh,v 1.9 2002/08/14 22:43:30 fluxgen Exp $
|
//$Id: StringUtil.hh,v 1.10 2002/09/15 09:40:26 fluxgen Exp $
|
||||||
|
|
||||||
#ifndef STRINGUTIL_HH
|
#ifndef STRINGUTIL_HH
|
||||||
#define STRINGUTIL_HH
|
#define STRINGUTIL_HH
|
||||||
|
@ -38,6 +38,8 @@ std::string expandFilename(const std::string &filename);
|
||||||
int getStringBetween(std::string& out, const char *instr, const char first, const char last,
|
int getStringBetween(std::string& out, const char *instr, const char first, const char last,
|
||||||
const char *ok_chars=" \t\n");
|
const char *ok_chars=" \t\n");
|
||||||
|
|
||||||
|
void toLower(char * const conv);
|
||||||
|
|
||||||
//--------- stringtok ----------------------------------
|
//--------- stringtok ----------------------------------
|
||||||
// Breaks a string into tokens
|
// Breaks a string into tokens
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
|
|
Loading…
Reference in a new issue