Pages: [1]   Go Down
Author Topic: WString.cpp is implementing undefined functions  (Read 2479 times)
0 Members and 1 Guest are viewing this topic.
Belgium
Offline Offline
Edison Member
*
Karma: 68
Posts: 1926
Arduino rocks; but with my plugin it can fly rocking the world ;-)
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi
Trying to compile a arduino project in Eclipse I found 5 Bugs in WString.cpp (or in WString.h?)
The declaration of the methods in WString.h is
    unsigned char endsWith( const String &suffix ) const;
    unsigned char equals( const String &anObject ) const;
    unsigned char equalsIgnoreCase( const String &anotherString ) const;
    unsigned char startsWith( const String &prefix ) const;
    unsigned char startsWith( const String &prefix, unsigned int toffset ) const;
where in WString.cpp it is implemented as
    boolean String::endsWith( const String &s2 ) const
    boolean String::equals( const String &s2 ) const
    boolean String::equalsIgnoreCase( const String &s2 ) const
    boolean String::startsWith( const String &s2 ) const
    boolean String::startsWith( const String &s2, unsigned int offset ) const

Not a big deal as unsigned char and boolean end up to be a byte, but it is at least dirty smiley-cool.
Best regards and keep up the good work smiley-grin
Jantje
 
Logged

Do not PM me a question unless you are prepared to pay for consultancy.
Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -

Pages: [1]   Go Up
Jump to: