Skip to content
Browse files

RegexKitLite 3.0 Release

git-svn-id: https://regexkit.svn.sourceforge.net/svnroot/regexkit/RegexKitLite@49 83f0d1e4-963b-0410-a2a1-d3bd3f33e299
  • Loading branch information...
1 parent 23d3a79 commit 79c443fb4c4f3c0979f02304b82d2d4383b528f5 jengelhart committed May 6, 2009
Showing with 557 additions and 281 deletions.
  1. +502 −281 RegexKitLite.html
  2. +22 −0 examples/compiledRegexCache.d
  3. +33 −0 examples/utf16ConversionCache.d
View
783 RegexKitLite.html
502 additions, 281 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
22 examples/compiledRegexCache.d
@@ -0,0 +1,22 @@
+#!/usr/sbin/dtrace -s
+
+RegexKitLite*:::compiledRegexCache {
+ this->eventID = (unsigned long)arg0;
+ this->regexUTF8 = copyinstr(arg1);
+ this->options = (unsigned int)arg2;
+ this->captures = (int)arg3;
+ this->hitMiss = (int)arg4;
+ this->icuStatusCode = (int)arg5;
+ this->icuErrorMessage = (arg6 == 0) ? "" : copyinstr(arg6);
+ this->hitRate = (double *)copyin(arg7, sizeof(double));
+
+ printf("%5d: %-60.60s Opt: %#8.8x Cap: %2d Hit: %2d Rate: %6.2f%% code: %5d msg: %s\n",
+ this->eventID,
+ this->regexUTF8,
+ this->options,
+ this->captures,
+ this->hitMiss,
+ *this->hitRate,
+ this->icuStatusCode,
+ this->icuErrorMessage);
+}
View
33 examples/utf16ConversionCache.d
@@ -0,0 +1,33 @@
+#!/usr/sbin/dtrace -s
+
+enum {
+ RKLCacheHitLookupFlag = 1 << 0,
+ RKLConversionRequiredLookupFlag = 1 << 1,
+ RKLSetTextLookupFlag = 1 << 2,
+ RKLDynamicBufferLookupFlag = 1 << 3,
+ RKLErrorLookupFlag = 1 << 4
+};
+
+RegexKitLite*:::utf16ConversionCache {
+ this->eventID = (unsigned long)arg0;
+ this->lookupResultFlags = (unsigned int)arg1;
+ this->hitRate = (double *)copyin(arg2, sizeof(double));
+ this->stringPtr = (void *)arg3;
+ this->NSRange_location = (unsigned long)arg4;
+ this->NSRange_length = (unsigned long)arg5;
+ this->length = (long)arg6;
+
+ printf("%5lu: flags: %#8.8x {Hit: %d Conv: %d SetText: %d Dyn: %d Error: %d} rate: %6.2f%% string: %#8.8p NSRange {%6lu, %6lu} length: %ld\n",
+ this->eventID,
+ this->lookupResultFlags,
+ (this->lookupResultFlags & RKLCacheHitLookupFlag) != 0,
+ (this->lookupResultFlags & RKLConversionRequiredLookupFlag) != 0,
+ (this->lookupResultFlags & RKLSetTextLookupFlag) != 0,
+ (this->lookupResultFlags & RKLDynamicBufferLookupFlag) != 0,
+ (this->lookupResultFlags & RKLErrorLookupFlag) != 0,
+ *this->hitRate,
+ this->stringPtr,
+ this->NSRange_location,
+ this->NSRange_length,
+ this->length);
+}

0 comments on commit 79c443f

Please sign in to comment.
Something went wrong with that request. Please try again.