Mercurial > hg > octave-lyh
comparison liboctave/glob-match.h @ 3504:5eef8a2294bd
[project @ 2000-02-01 10:06:51 by jwe]
author | jwe |
---|---|
date | Tue, 01 Feb 2000 10:07:26 +0000 |
parents | 66ef74ee5d9f |
children | 4c8a2e4e0717 |
comparison
equal
deleted
inserted
replaced
3503:d14c483b3c12 | 3504:5eef8a2294bd |
---|---|
38 pathname = 1, // No wildcard can ever match `/'. | 38 pathname = 1, // No wildcard can ever match `/'. |
39 noescape = 2, // Backslashes don't quote special chars. | 39 noescape = 2, // Backslashes don't quote special chars. |
40 period = 4 // Leading `.' is matched only explicitly. | 40 period = 4 // Leading `.' is matched only explicitly. |
41 }; | 41 }; |
42 | 42 |
43 glob_match (const string& p = string (), | 43 glob_match (const std::string& p = std::string (), |
44 unsigned int f = pathname|noescape|period) | 44 unsigned int f = pathname|noescape|period) |
45 : pat (p), flags (f) { } | 45 : pat (p), flags (f) { } |
46 | 46 |
47 glob_match (const string_vector& p = string_vector (), | 47 glob_match (const string_vector& p = string_vector (), |
48 unsigned int f = pathname|noescape|period) | 48 unsigned int f = pathname|noescape|period) |
60 return *this; | 60 return *this; |
61 } | 61 } |
62 | 62 |
63 ~glob_match (void) { } | 63 ~glob_match (void) { } |
64 | 64 |
65 void set_pattern (const string& p) { pat = p; } | 65 void set_pattern (const std::string& p) { pat = p; } |
66 | 66 |
67 void set_pattern (const string_vector& p) { pat = p; } | 67 void set_pattern (const string_vector& p) { pat = p; } |
68 | 68 |
69 bool match (const string&); | 69 bool match (const std::string&); |
70 | 70 |
71 Array<bool> match (const string_vector&); | 71 Array<bool> match (const string_vector&); |
72 | 72 |
73 string_vector glob (void); | 73 string_vector glob (void); |
74 | 74 |