Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcb3ab4c

Browse files
committed
Add String::isEmpty()
1 parent65633ce commitcb3ab4c

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
boolreserve(unsignedint size);
9191
inlineunsignedintlength(void)const {return len;}
92+
inlineboolisEmpty(void)const {returnlength() ==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)

[8]ページ先頭

©2009-2025 Movatter.jp