diff options
author | Taku Kudo <taku@google.com> | 2020-10-13 20:49:04 +0300 |
---|---|---|
committer | Taku Kudo <taku@google.com> | 2020-10-13 20:49:04 +0300 |
commit | fe075e5fb95f4825f1b4885e1d6bc2eac69cd4c0 (patch) | |
tree | 5055b4b0730fc02007ba1654b1db2dbe43c2863e | |
parent | 909f4bdc0140630ad0c9625c67373a62f99d525e (diff) |
changed macro big endian
-rw-r--r-- | src/builder.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/builder.cc b/src/builder.cc index 2c83645..14105a5 100644 --- a/src/builder.cc +++ b/src/builder.cc @@ -12,11 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License.! +#include "builder.h" + #include <algorithm> #include <functional> #include <utility> -#include "builder.h" #include "filesystem.h" #include "third_party/absl/strings/str_join.h" #include "third_party/absl/strings/str_replace.h" @@ -218,8 +219,9 @@ util::Status Builder::DecompileCharsMap(absl::string_view blob, chars_map->clear(); absl::string_view trie_blob, normalized; - RETURN_IF_ERROR( - Normalizer::DecodePrecompiledCharsMap(blob, &trie_blob, &normalized)); + std::string buf; + RETURN_IF_ERROR(Normalizer::DecodePrecompiledCharsMap(blob, &trie_blob, + &normalized, &buf)); Darts::DoubleArray trie; trie.set_array(const_cast<char *>(trie_blob.data()), |