File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,7 @@ namespace internal{
93
93
inline iterator begin () const { return CHAR ( STRING_ELT ( *parent, index ) ) ; }
94
94
inline iterator end () const { return begin () + size () ; }
95
95
inline int size () const { return strlen ( begin () ) ; }
96
+ inline bool empty () const { return *begin () == ' \0 ' ; }
96
97
inline reference operator []( int n ){ return *( begin () + n ) ; }
97
98
98
99
bool operator ==( const char * other){
Original file line number Diff line number Diff line change @@ -158,6 +158,7 @@ namespace internal{
158
158
inline iterator begin () const { return CHAR ( STRING_ELT ( *parent, index ) ) ; }
159
159
inline iterator end () const { return begin () + size () ; }
160
160
inline int size () const { return strlen ( begin () ) ; }
161
+ inline bool empty () const { return *begin () == ' \0 ' ; }
161
162
inline reference operator []( int n ){ return *( begin () + n ) ; }
162
163
163
164
template <typename UnaryOperator>
You can’t perform that action at this time.
0 commit comments