added strlower()
This commit is contained in:
parent
e35e2eac8d
commit
467d9d3692
|
@ -372,3 +372,19 @@ char* strupper( char* Text )
|
||||||
|
|
||||||
return Text;
|
return Text;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/********************************/
|
||||||
|
char* strlower( char* text )
|
||||||
|
/********************************/
|
||||||
|
{
|
||||||
|
char* start = text;
|
||||||
|
|
||||||
|
while( *text )
|
||||||
|
{
|
||||||
|
if( *text >= 'A' && *text <= 'Z' )
|
||||||
|
*text -= 'A' - 'a';
|
||||||
|
text++;
|
||||||
|
}
|
||||||
|
|
||||||
|
return start;
|
||||||
|
}
|
||||||
|
|
|
@ -491,6 +491,7 @@ wxString FindKicadFile( const wxString& shortname );
|
||||||
/* STRING.CPP */
|
/* STRING.CPP */
|
||||||
/*************/
|
/*************/
|
||||||
char* strupper( char* Text );
|
char* strupper( char* Text );
|
||||||
|
char* strlower( char* Text );
|
||||||
|
|
||||||
int ReadDelimitedText( char* dest, char* source, int NbMaxChar );
|
int ReadDelimitedText( char* dest, char* source, int NbMaxChar );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue