creates map for fast categorization of characters */
| 9 | |
| 10 | /* creates map for fast categorization of characters */ |
| 11 | static void createCharMap(bool map[256], const std::string& chrs) { |
| 12 | for (size_t i=0; i<256; i++) map[i] = false; |
| 13 | for (size_t i=0; i<chrs.size(); i++) map[uint8_t(chrs[i])] = true; |
| 14 | } |
| 15 | |
| 16 | /* simple tokenizer */ |
| 17 | StringStream::StringStream(const Ref<Stream<int> >& cin, const std::string& seps, const std::string& endl, bool multiLine) |