SUBPLUS() Returns multiple substrings STRPULL() Extract text between 2 characters TAKEOUT() Extract a portion of a string between delimiters at nth occurrance CRUNCH() Moves spaces in a string to end of string ADDSPACE() Pads right of string with spaces ARRANGE() Rearranges text in a string CENTR() Centers a string in x spaces _WILDCARD() Wild Card String Compare ALLBUT() Returns all but last x characters STRETCH() Imbeds characters in a string LJUST() Left justifies a string STARTSW() Determines if a string starts with another string VAR2CHAR() Converts any type variable to character type RJUST() Right justifies a string PROPER() Capitalizes first letters of string, lowers rest
Tag Archives: _WILDCARD()
SP__WILDCARD
_WILDCARD() Short: ------ _WILDCARD() Wild Card String Compare Returns: -------- <lMatched> => match Syntax: ------- _wildcard(<cPattern>,<cTarget>) Description: ------------ <cPattern> is a model/wildcard pattern to search for and <cTarget> is a string to compare with model/pattern in <cPattern>. Like DOS wildcards, but for a string. <cPattern> is a string of wild cards interspersed with literal text to compare against the contents of <cTarget>. The following conventions for wild cards are followed: 1. "*" stands for any group of characters. W*r gives fields beginning with "W", ending with "r". *w*r gives fields having "w" before last character "r". 2. "?" stands for any single character. J?n?s gives Janes, Janus, Jones, and so on. Examples: --------- _wildcard("Pr?fon*e", "Prefontaine" ) // returns -> True _wildcard("Pr?on*e", "Prefontaine" ) // returns -> False _wildcard("Stei*er","Prefontaine") // returns -> False Notes: ------- This was a C function in previous SuperLibs. Now 5.01 Clipper source code, and more reliable. Source: ------- S_WILD.PRG