From 846726bbcfedd33e85d21b418e231011d0f4eb28 Mon Sep 17 00:00:00 2001 From: Gerben Aaltink Date: Wed, 2 Oct 2024 15:23:13 +0200 Subject: [PATCH] SO lib --- librmatch.so | Bin 0 -> 26024 bytes rmatch.so.c | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100755 librmatch.so create mode 100644 rmatch.so.c diff --git a/librmatch.so b/librmatch.so new file mode 100755 index 0000000000000000000000000000000000000000..81760be508f470bb71e9620c2ba1368ed91fafd8 GIT binary patch literal 26024 zcmeHw4Rlo1wf~(Y15qFo6>LaW9D#dCAtmqx1h^UCD%>TE~$IQ(osa@~C z-g@h;#mSm`&i*{-?6c3l=bk%ra)Zx5Kg(uQWXe`9Rx*&HlnX-P)slm7vz0NpepQ*o zcyltO6G|J#a+J)Kd=66`b}9e(Mdk4VCi*!aH!Qe7z5VI@&*!~0v(+}L>imsgfUKN`&jfs^n$h?a-M(ayw&(pT^~3!iiFnTXF<@p0la86V-EiVNkb_8Cc)p?lk6p<4|^1 z?~xb#UV7rUm+XJ#gO=ys-c!8h!6z@>(7*ScL&uro5iY+0{`6sJ9vE&oJlW7W41d)K z{CmJVoSvo;@b8U)Uoe9HmJ#sJkDv$aiW47e+6%;R?R*mg()Y|V*NnhFZiM#C90C8< z2zsUg@5INN<^wUsiUfQ;KEt)22LE&=Pgy&O3)#i|SjF0tr|cx>Lu%%k@;8C6DdmVA zfGNfBAw3%k7^t`eev!Z{XK;M0z^@i~=M0V?!!zYUfsfLpKzfyD%3@J(R7{L6q30Zd z-*7Hx+%5380;KlrqzQ)ffWU7Q{3T>Sq@Rij{xg(MQwo%u>j|qUf?erCne=qhu4 ziK40KRCMYAU9>}u`MnngvB zXzx@yBU(2o!S3!549T>ImIvEA+d=^tkhK6@5~VE*n^ktFZ6zwDdb$JMZNcuAp?tEl zWtqqOt?y&poN~OQ5VqV}P_l$I@bY{9Z!<{K-N*B3j zk-uc&&&IAhpIvzuz9?hl8Lh2YL5)(52;91#+%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5-%8?_{1Z>~W~3e!xQJ zqfv(_8*=<*9HfEOmsnkb7xI#NF8y?!-x>D-?Gc)evcIYnqPt zij1L!&JJ}qt>}O)`Q~OUN>+3bwaG8B~*Iw36v*=&O;aE^nQVa>D`D~ex!5JB|mO=Ly`v&zM>zN^~?PSng5sI zmU40*Kq~nT3bbV)<>mf_%=ch@Ly7h?Z1_ldxo@x#IAW3Va=%07a(@FXERha#ssliK z4N_k2FUb6I!7SS^`DES#I_+IZSnglQyk5v#+b__{G89O+l&=^2B{EM4Mp?hL|2GQx z3c)A$Ut}H?9VU7F;^74Q#egFgxj&R%?1@F6+=l`SOR^mjz6k}hyi>@@oV|mP%*f?h zQszIg$d`!y3zk>w&Ebee=s@)G;+D46>% zpDSf9_xU8h)qW2Oc{%<{x!@G}Jv2E@Nw!;}9zlWXm-6y?ROU}eMv+_Vf5swTuX0A2 z-z+y0g}n4X0V;n&f%bgFG)?cn$p1rN<(II`Uxlp0Bro@Sj*91b$p;peBrNl{fhFIS z^{1cH7jXUr83##rL&`}z(*6*!NO^f4a^g~w;{SJmm-to6%lr_~W_h_^Y6$t;&B7>4 zIhlWIk&o7MfoKiSvalid ? result->start : -1; +} +/* +* Original beautiful code matcher with offset support +* Returns -1 if not found +* Returns offset if found +*/ +extern int matchb(char * expr, char * str){ + return rbmatch(expr,str); +}