File tree 1 file changed +21
-8
lines changed
1 file changed +21
-8
lines changed Original file line number Diff line number Diff line change 1
- app
2
- -----------
3
- framework
4
- -----------
5
- provider
6
- -----------
1
+ 架构图:
2
+
3
+ ***************
4
+ * app *
5
+ *-------------*
6
+ * framework *
7
+ *-------------*
8
+ * provider *
9
+ ***************
10
+
7
11
8
12
framework structs:
9
13
provider: represent a provider.
@@ -29,16 +33,25 @@ framework apis:
29
33
int set_provider(char *provider_name, int model);
30
34
/*==========================================
31
35
在字典中查询 query_string,将查询结果保存在 result 中。
36
+ direction 表示查询方向:
37
+ +1 表示 中 --> 英
38
+ 0 表示自动判断。
39
+ -1 表示 英 --> 中
32
40
返回值:
33
41
0 查询成功。
34
42
-1 查询失败。
35
43
*========================================== */
36
- int query_dict(char *query_string, dict_result *result);
44
+ int query_dict(int direction, char *query_string, dict_result *result);
45
+
37
46
/*==========================================
38
47
翻译 orgi,将结果保存在 trans 中。
48
+ direction 表示查询方向:
49
+ +1 表示 中 --> 英
50
+ 0 表示自动判断。
51
+ -1 表示 英 --> 中
39
52
返回值:
40
53
0 查询成功。
41
54
-1 查询失败。
42
55
*========================================== */
43
- int translate(char *orgi, char *trans);
56
+ int translate(int direction, char *orgi, char *trans);
44
57
You can’t perform that action at this time.
0 commit comments