added strlower()

This commit is contained in:
dickelbeck 2007-12-22 07:17:22 +00:00
parent e35e2eac8d
commit 467d9d3692
2 changed files with 17 additions and 0 deletions

View File

@ -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;
}

View File

@ -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 );