MCPcopy Create free account
hub / github.com/HelloBush/Java_MHXYdemo / main

Method main

src/pkgTest/TestFindStr.java:9–30  ·  view source on GitHub ↗
(String args[])

Source from the content-addressed store, hash-verified

7
8public class TestFindStr {
9 public static void main(String args[]){
10 Dm2Java.DMInit();
11
12 Dm2Java dm = new Dm2Java();
13
14
15 //�����ֿ�·��
16 dm.SetDict(0, "./res/WordsLib/words00.txt");
17 System.out.println("�ַ����سɹ���������"+dm.GetDictCount(0));
18 //����ָ���ַ�
19 Variant x = new Variant(-1,true);
20 Variant y = new Variant(-1,true);
21 int v = dm.FindStrFast(0, 0, 1920, 1080, "��", "654b36-050505|553923-101010", 0.75, x, y);
22 if(v==0)
23 System.out.println("�ַ����ҳɹ�����x="+x+",y="+y);
24 else
25 System.out.println("�ַ�����ʧ�ܣ���x="+x+",y="+y);
26
27
28
29 Dm2Java.DMClear();
30 }
31}

Callers

nothing calls this directly

Calls 5

DMInitMethod · 0.95
SetDictMethod · 0.95
GetDictCountMethod · 0.95
FindStrFastMethod · 0.95
DMClearMethod · 0.95

Tested by

no test coverage detected