about summary refs log tree commit diff stats
path: root/histogram.h
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2016-02-01 09:30:04 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2016-02-01 09:30:04 -0500
commit617155fe562652c859a380d85cc5710783d79448 (patch)
treef5eee89b0fa4b3c9dfe7187ca78916a71b59045e /histogram.h
parentb316e309559d7176af6cf0bb7dcd6dbaa83c01cd (diff)
downloadrawr-ebooks-617155fe562652c859a380d85cc5710783d79448.tar.gz
rawr-ebooks-617155fe562652c859a380d85cc5710783d79448.tar.bz2
rawr-ebooks-617155fe562652c859a380d85cc5710783d79448.zip
Added emoji freevar
Strings of emojis are tokenized separately from anything else, and added to an emoticon freevar, which is mixed in with regular emoticons like :P. This breaks old-style freevars like $name$ and $noun$ so some legacy support for compatibility is left in but eventually $name$ should be made into an actual new freevar. Emoji data is from gemoji (https://github.com/github/gemoji).
Diffstat (limited to 'histogram.h')
-rw-r--r--histogram.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/histogram.h b/histogram.h index 5aa2560..76d8f1b 100644 --- a/histogram.h +++ b/histogram.h
@@ -10,6 +10,7 @@ class histogram {
10 void add(const T& inst); 10 void add(const T& inst);
11 void compile(); 11 void compile();
12 const T& next() const; 12 const T& next() const;
13 void print() const;
13 14
14 private: 15 private:
15 std::map<T, int> freqtable; 16 std::map<T, int> freqtable;