Return the size of the string. */
| 55 | |
| 56 | /** Return the size of the string. */ |
| 57 | size_t size() const |
| 58 | { |
| 59 | assert(!m_data.empty()); |
| 60 | return m_data.front().length(); |
| 61 | } |
| 62 | |
| 63 | /** Return the number of occurrences of the specified symbol. */ |
| 64 | size_t count(T c) const { return m_data[c].one_num(); } |