diff --git a/common/string.cpp b/common/string.cpp index d12ea81cb3..6e113e82c8 100644 --- a/common/string.cpp +++ b/common/string.cpp @@ -372,3 +372,19 @@ char* strupper( char* Text ) return Text; } + +/********************************/ +char* strlower( char* text ) +/********************************/ +{ + char* start = text; + + while( *text ) + { + if( *text >= 'A' && *text <= 'Z' ) + *text -= 'A' - 'a'; + text++; + } + + return start; +} diff --git a/include/common.h b/include/common.h index ca514d5117..4fbdb7aebc 100644 --- a/include/common.h +++ b/include/common.h @@ -491,6 +491,7 @@ wxString FindKicadFile( const wxString& shortname ); /* STRING.CPP */ /*************/ char* strupper( char* Text ); +char* strlower( char* Text ); int ReadDelimitedText( char* dest, char* source, int NbMaxChar );