Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is there python interface? #6

Closed
SeekPoint opened this issue Jun 21, 2020 · 2 comments
Closed

is there python interface? #6

SeekPoint opened this issue Jun 21, 2020 · 2 comments
Labels

Comments

@SeekPoint
Copy link

No description provided.

@3F
Copy link
Owner

3F commented Jun 21, 2020

Nothing special for python; at least for today.

For python you need ctypes use: https://docs.python.org/3/library/ctypes.html#module-ctypes

And since regXwild exports the following functions (C-mangling): https://github.com/3F/regXwild/blob/master/regXwild/regXwildAPI.h

For example, for:

bool searchEssC(const TCHAR* data, const TCHAR* filter, bool ignoreCase);

and for Unicode module (latest versions also distributed with MultiByte) it can be as below ~

import ctypes
regXwild = ctypes.cdll.LoadLibrary('regXwild.dll')

wstr  = ctypes.c_wchar_p("TV_[11_of_24]");
icase = ctypes.c_bool(0)

regXwild.searchEssC(wstr, ctypes.c_wchar_p("1?_*24"), icase)

Let me know if you still have some problems.

@3F 3F added the question label Jun 21, 2020
@SeekPoint
Copy link
Author

Great

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants