(String args[])
| 7 | |
| 8 | public 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 | } |
nothing calls this directly
no test coverage detected