Changes between Version 3 and Version 4 of Doc/panc/stdtpl/types
- Timestamp:
- Nov 30, 2007, 4:05:45 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Doc/panc/stdtpl/types
v3 v4 58 58 A value that is either a valid IPv4 or IPv6 network address. 59 59 60 === type_network_name, is_network_name(string) === 61 62 A value that is either a valid host name (with domain), IP address, has the form ".domain", or the form "IP/mask". 63 60 64 == Hostname-Related Types == 61 65 … … 80 84 A value of the form "hostname:port". The individual component are verified to be also correct. 81 85 86 == Web and Email Types == 82 87 88 === type_URI, is_URI(string) === 83 89 90 This defines an URI according to RFC2396. Note that this is the most general URI which allows opaque URIs, hostbased URIs, and relative URIs. You may want a more specific-type for a particular value. 84 91 92 === type_absoluteURI, is_absoluteURI(string) === 93 94 This defines an absolute URI according to RFC2396. This is just a valid URI with the scheme explicitly included. 95 96 === type_hostURI, is_hostURI(string) === 97 98 This defines an URI according to RFC2396. A host-based URI is an absolute URI with a non-empty host field. 99 100 === type_email, is_email(string) === 101 102 Defines a valid email address; both the receipient and domain must be specified. 103 104 == Miscellaneous == 105 106 === type_lowercase, is_lowercase(string) === 107 108 Returns false if the string contains any of the characters A-Z; returns true otherwise. 109 110 === type_uppercase, is_uppercase(string) === 111 112 Returns false if the string contains any of the characters a-z; returns true otherwise. 113