![]() |
RegEx via API?
Ich bin grad in der Unit NSAPI.pas über etwas etwas gestolpert.
Mich hatte eigentlich nur mal interessiert, ob Delphi da auch etwas dabei hat, bzw. ob man da irgendwo sowas findet, denn immerhin bietet doch die IDE in der Suchfunktion auch etwas? :gruebel:
Delphi-Quellcode:
Dazu noch was Kleines von MS:
{*******************************************************}
{ } { Delphi Runtime Library } { } { Copyright(c) 1995-2010 Embarcadero Technologies, Inc. } { } {*******************************************************} {*******************************************************} { Structure definitions and prototypes for the } { Netscape Internet Server API (NSAPI) } {*******************************************************} {*****************************************************************************} {* From shexp.h } {*****************************************************************************} { Defines and prototypes for shell exp. match routines This routine will match a string with a shell expression. The expressions accepted are based loosely on the expressions accepted by zsh. o * matches anything o ? matches one character o \ will escape a special character o $ matches the end of the string o [abc] matches one occurence of a, b, or c. The only character that needs to be escaped in this is ], all others are not special. o [a-z] matches any character between a and z o [^az] matches any character except a or z o ~ followed by another shell expression will remove any pattern matching the shell expression from the match list o (foo|bar) will match either the substring foo, or the substring bar. These can be shell expressions as well. The public interface to these routines is documented below. } {* --------------------------- Public routines ---------------------------- *} { shexp_valid takes a shell expression exp as input. It returns: NON_SXP if exp is a standard string INVALID_SXP if exp is a shell expression, but invalid VALID_SXP if exp is a valid shell expression } const NON_SXP = -1; INVALID_SXP = -2; VALID_SXP = 1; {* and generic shexp/regexp versions *} NON_WILDPAT = NON_SXP; INVALID_WILDPAT = INVALID_SXP; VALID_WILDPAT = VALID_SXP; {* and regexp versions *} NON_REGEXP = NON_SXP; INVALID_REGEXP = INVALID_SXP; VALID_REGEXP = VALID_SXP; function shexp_valid(exp: PAnsiChar): Integer; cdecl; { shexp_match Takes a prevalidated shell expression exp, and a string str. Returns 0 on match and 1 on non-match. } function shexp_match(str, exp: PAnsiChar): Integer; cdecl; { shexp_cmp Same as above, but validates the exp first. 0 on match, 1 on non-match, -1 on invalid exp. shexp_casecmp does the same thing but is case insensitive. } function shexp_cmp(str, exp: PAnsiChar): Integer; cdecl; function shexp_casecmp(str, exp: PAnsiChar): Integer; cdecl; ![]() ![]() Sooo, nun hab ich hier auf'm Rechner natürlich keine ns-httpd20.dll gefunden, in welcher sich dieses verstecken soll. Täucht das nun oder ist dieses NSAPI (Netscape Server Application Programming Interface) nur in einem ServerOS vorhanden, bzw. nur wenn z.B. ein Sun Java System Web Server oder Zeus Web Server installiert ist? Hab jedenfalls nicht viele Informationen gefunden, nur daß eben seit 'ner Weile, die oben genannten Serversysteme, diese API implementiert haben. ![]() |
Re: RegEx via API?
Zitat:
manche "nackig" manche mit Appache und JRE SDK nach httpd20.dll, httpd20, httpd durchsucht, nicht ein Treffer. Ein System mit Tomcat hab ich leider nicht im Zugriff. lg. Astat |
Re: RegEx via API?
Danke erstmal.
Die 20 scheint die Version 2.0 zu sein, also ns-httpd*.dll, aber es wäre natürlich zu schön gewesen, wenn da schon was im in Windows vorhanden wäre. :angel2: Wobei ... im .Net-Framewörk soll ja was drinnen sein, aber das bringt bei einem nativen Programm nicht viel. |
Alle Zeitangaben in WEZ +1. Es ist jetzt 09:22 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz