| 103 | } |
| 104 | |
| 105 | String CStringArray::popFront() |
| 106 | { |
| 107 | if(length() == 0) { |
| 108 | return nullptr; |
| 109 | } |
| 110 | auto p = c_str(); |
| 111 | auto len = strlen(p); |
| 112 | String s(p, len); |
| 113 | remove(0, len + 1); |
| 114 | if(stringCount != 0) { |
| 115 | --stringCount; |
| 116 | } |
| 117 | return s; |
| 118 | } |
| 119 | |
| 120 | const char* CStringArray::back() const |
| 121 | { |