Caffe2 - C++ API
A deep learning, cross platform ML framework
string_utils.h
1 
17 #pragma once
18 
19 #include <memory>
20 #include <string>
21 #include <vector>
22 
23 namespace caffe2 {
24 
25 std::vector<std::string> split(char separator, const std::string& string);
26 size_t editDistance(
27  const std::string& s1, const std::string& s2, size_t max_distance = 0);
28 
29 int32_t editDistanceHelper(const char* s1,
30  size_t s1_len,
31  const char* s2,
32  size_t s2_len,
33  std::vector<size_t> &current,
34  std::vector<size_t> &previous,
35  std::vector<size_t> &previous1,
36  size_t max_distance);
37 } // namespace caffe2
Copyright (c) 2016-present, Facebook, Inc.