EXAMPLE dox
dynamodb_reserved_words.cc
1 /*
2  * dynamodb_reserved_words.cc
3  *
4  * Created on: Mar 25, 2015
5  * Author: csabaraduly
6  */
7 
8 #include "dynamodb_reserved_words.h"
9 #include <string.h>
10 
11 namespace aws {
12 
13 #include "hasher.h"
14 
15 bool DynamoDBReservedWords::is_reserved(std::string const& word)
16 {
17  return Perfect_Hash::in_word_set(word.c_str(), word.size());
18 }
19 
20 #if 0
21 bool DynamoDBReservedWords::is_reserved(const char* word)
22 {
23  return Perfect_Hash::in_word_set(word, strlen(word));
24 }
25 #endif
26 
27 } /* namespace aws */
static bool is_reserved(std::string const &word)
Check whether a string is a reserved name.