aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino
diff options
context:
space:
mode:
Diffstat (limited to 'cores/arduino')
-rw-r--r--cores/arduino/WString.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/cores/arduino/WString.h b/cores/arduino/WString.h
index b4b6a38..b4e160c 100644
--- a/cores/arduino/WString.h
+++ b/cores/arduino/WString.h
@@ -56,9 +56,9 @@ class String
// general methods
char charAt( unsigned int index ) const;
int compareTo( const String &anotherString ) const;
- boolean endsWith( const String &suffix ) const;
- boolean equals( const String &anObject ) const;
- boolean equalsIgnoreCase( const String &anotherString ) const;
+ unsigned char endsWith( const String &suffix ) const;
+ unsigned char equals( const String &anObject ) const;
+ unsigned char equalsIgnoreCase( const String &anotherString ) const;
int indexOf( char ch ) const;
int indexOf( char ch, unsigned int fromIndex ) const;
int indexOf( const String &str ) const;
@@ -69,14 +69,14 @@ class String
int lastIndexOf( const String &str, unsigned int fromIndex ) const;
const unsigned int length( ) const { return _length; }
void setCharAt(unsigned int index, const char ch);
- boolean startsWith( const String &prefix ) const;
- boolean startsWith( const String &prefix, unsigned int toffset ) const;
+ unsigned char startsWith( const String &prefix ) const;
+ unsigned char startsWith( const String &prefix, unsigned int toffset ) const;
String substring( unsigned int beginIndex ) const;
String substring( unsigned int beginIndex, unsigned int endIndex ) const;
String toLowerCase( ) const;
String toUpperCase( ) const;
String trim( ) const;
- const byte *getBytes() const { return (byte*)_buffer; }
+ const unsigned char *getBytes() const { return (unsigned char*)_buffer; }
const char* toCharArray() const { return _buffer; }
const String& concat( const String &str );
String replace( char oldChar, char newChar );