summaryrefslogtreecommitdiff
path: root/Ivy
diff options
context:
space:
mode:
authorfcolin2007-02-01 13:04:40 +0000
committerfcolin2007-02-01 13:04:40 +0000
commit5cbed4b3ece796dc63e8958342643fc8a3216051 (patch)
tree3373d9b3e7a83ceaa3d5e06ebad1e88bdfe43bd2 /Ivy
parent00a296093ba62e3fcabc50a23f864424a8ca5af2 (diff)
downloadivy-cplusplus-5cbed4b3ece796dc63e8958342643fc8a3216051.zip
ivy-cplusplus-5cbed4b3ece796dc63e8958342643fc8a3216051.tar.gz
ivy-cplusplus-5cbed4b3ece796dc63e8958342643fc8a3216051.tar.bz2
ivy-cplusplus-5cbed4b3ece796dc63e8958342643fc8a3216051.tar.xz
Utilisateur : Fcolin Date : 31/01/01 Heure : 11:18 Archivé dans $/Ivy (vss 3)
Diffstat (limited to 'Ivy')
-rw-r--r--Ivy/Regexp.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/Ivy/Regexp.h b/Ivy/Regexp.h
index 3265561..cf7a748 100644
--- a/Ivy/Regexp.h
+++ b/Ivy/Regexp.h
@@ -1,6 +1,4 @@
-#ifndef __REGEXP_H__
-#define __REGEXP_H__
-
+#pragma once
class regexp;
@@ -18,13 +16,13 @@ public:
bool Match( const char * s );
int SubStrings() const;
- const String operator[]( unsigned int i ) const;
+ const string operator[]( unsigned int i ) const;
int SubStart( unsigned int i ) const;
int SubLength( unsigned int i ) const;
- String GetReplaceString( const char * source ) const;
+ string GetReplaceString( const char * source ) const;
- String GetErrorString() const;
+ string GetErrorString() const;
bool CompiledOK() const;
#if defined( _RE_DEBUG )
@@ -32,7 +30,7 @@ public:
#endif
private:
const char * str; /* used to return substring offsets only */
- mutable String m_szError;
+ mutable string m_szError;
regexp * rc;
void ClearErrorString() const;
@@ -40,5 +38,4 @@ private:
};
-#endif