Skip to content

Commit 2e5570e

Browse files
committed
Add String::isEmpty()
1 parent 65633ce commit 2e5570e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

api/String.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ class String
8989
// invalid string (i.e., "if (s)" will be true afterwards)
9090
bool reserve(unsigned int size);
9191
inline unsigned int length(void) const {return len;}
92+
inline bool isEmpty(void) const { return length() == 0; }
9293

9394
// creates a copy of the assigned value. if the value is null or
9495
// invalid, or if the memory allocation fails, the string will be

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy