Browse Source

added strlower()

pull/1/head
dickelbeck 18 years ago
parent
commit
467d9d3692
  1. 16
      common/string.cpp
  2. 1
      include/common.h

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

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

Loading…
Cancel
Save