< prev index next >


Print this page
rev 55090 : secret-sfac

@@ -81,10 +81,15 @@
   // Return the i-th utf byte as a char, where i < utf8_length
   char        char_at(int i);
   // Tests if the symbol starts with the given prefix.
   bool starts_with(const char* prefix, int len) const;
+  bool starts_with(char prefix_char) const;
+  // Tests if the symbol ends with the given suffix.
+  bool ends_with(const char* suffix, int len) const;
+  bool ends_with(char suffix_char) const;
   bool        is_Q_signature();
   // Determines where the symbol contains the given substring.
   int index_of_at(int i, const char* str, int len) const;
< prev index next >