search for: regex_match

Displaying 9 results from an estimated 9 matches for "regex_match".

2007 Aug 23
1
[nut-commits] svn commit r1073 - in trunk: . drivers
...usbhid-ups? I envision that the code in usbhid-ups:reconnect_ups() could be changed to something like: hd = HIDOpenDevice(&udev, &curDevice, reopen_matcher, MODE_REOPEN); if (hd == NULL) { /* reopening failed, try opening new device */ hd = HIDOpenDevice(&udev, &curDevice, regex_matcher, MODE_OPEN); } if (hd == NULL) { return 0; } Note "regex_matcher", not "reopen_matcher", in the second call, and also the changed MODE flag. Then all the complicated stuff could be removed from libhid/libusb (different non-zero return codes for matchers etc). I am not s...
2004 Feb 24
1
(no subject)
...slapd[8287]: => acl_mask: to all values by "", (=n) Feb 23 17:44:36 localhost slapd[8287]: string_expand: pattern: cn=Manager,dc=tuluc,dc=com Feb 23 17:44:36 localhost slapd[8287]: => string_expand: expanded: cn=Manager,dc=tuluc,dc=com Feb 23 17:44:36 localhost slapd[8287]: => regex_matches: string:^I Feb 23 17:44:36 localhost slapd[8287]: => regex_matches: rc: 1 no matches Feb 23 17:44:36 localhost slapd[8287]: string_expand: pattern: cn=replicator,dc=tuluc,dc=com Feb 23 17:44:36 localhost slapd[8287]: => string_expand: expanded: cn=replicator,dc=tuluc,dc=com Feb 23 17:44:3...
2015 Sep 16
2
LLVM linking problem
...intermediate code. The use of the exact llvm-link binary, however, is not a necessary ingredient; I get the same result with a linking program of my own that uses the same libraries as llvm-link. Minimal test case: C:\test>type test.cpp #include <regex> int main() { std::cmatch m; regex_match("a", m, std::regex("a")); return 0; } C:\test>clang-cl -Xclang -emit-llvm -c -fms-compatibility-version=19 test.cpp C:\test>move test.obj test.ll Overwrite C:\test\test.ll? (Yes/No/All): y 1 file(s) moved. C:\test>llvm-link test.ll -o=a.ll C:\test>clang...
2009 Aug 24
0
[LLVMdev] Regular Expression lib support
...to execute) then the spirit example for note. std/tr1/boost::regex (the C++ standard): // dynamic regex, so it is slow in comparison to other alternatives bool parse_test(std::string &testStr, myPair &ret) { match_results<IteratorType> m; regex e(regexStr); bool successful = regex_match(testStr.begin(),testStr.end(),m,e,match_extra); if(successful) { float f; vector<int> &i_list = myPair.second; f = atof(m[1].c_str()); myPair.first=f; for(int i = 2; i < what.captures(2).size(); ++i) { i_list.push_back(atoi(m.captures(2)[i])); }...
2009 Aug 24
2
[LLVMdev] Regular Expression lib support
On Aug 23, 2009, at 5:50 PM, OvermindDL1 wrote: > On Sun, Aug 23, 2009 at 6:32 PM, Daniel Dunbar<daniel at zuster.org> > wrote: >> This is too heavy, and we don't need the extra features, and regexec >> is well tested and much more standard. Unless there is an >> overwhelming > > 'regexec' I had never heard of, figured it was a library, turns
2010 Apr 27
1
include insmod patch
Am I wrong saying that actually anyone that use klibc has to use insmod patch or build a monolithic kernel? Could not the insmod patch be include? That will make everyone life easier on klibc upgrade. Gilles
2007 Aug 22
1
[nut-commits] svn commit r1072 - in trunk: . drivers
Arjen de Korte wrote: > - HIDOpenDevice() will now handle closing the device on reload if > needed, so that HIDCloseDevice() can now really close it and free > the allocated memory for report buffer and parsed report descriptor. If I remember correctly, the old behavior on "reopen" was to keep the previous report descriptor, and try to find a device that matches the previously
2020 Apr 03
0
Patch to support Powercool PCRACK-1200VA
...Ian diff --git a/drivers/nutdrv_qx.c b/drivers/nutdrv_qx.c index bb526608..75bb97f8 100644 --- a/drivers/nutdrv_qx.c +++ b/drivers/nutdrv_qx.c @@ -422,6 +422,7 @@ static USBDevice_t            usbdevice;  static USBDeviceMatcher_t        *reopen_matcher = NULL;  static USBDeviceMatcher_t        *regex_matcher = NULL;  static int                langid_fix = -1; +static int                buflen_fix = -1;  static int    (*subdriver_command)(const char *cmd, char *buf, size_t buflen) = NULL; @@ -702,8 +703,15 @@ static int    krauler_command(const char *cmd, char *buf, size_t buflen)          { NU...
2020 Apr 03
0
Powercool PCRACK-1200VA patch update
...utdrv_qx.c index bb526608..ad450e39 100644 --- a/drivers/nutdrv_qx.c +++ b/drivers/nutdrv_qx.c @@ -421,7 +421,6 @@ static usb_dev_handle            *udev = NULL;  static USBDevice_t            usbdevice;  static USBDeviceMatcher_t        *reopen_matcher = NULL;  static USBDeviceMatcher_t        *regex_matcher = NULL; -static int                langid_fix = -1;  static int    (*subdriver_command)(const char *cmd, char *buf, size_t buflen) = NULL; @@ -717,13 +716,7 @@ static int    krauler_command(const char *cmd, char *buf, size_t buflen)          for (retry = 0; retry < 10; retry++) {     ...