summaryrefslogtreecommitdiffstats
path: root/Source/cmRegularExpression.h
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-02-25 23:14:01 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-02-25 23:14:01 (GMT)
commit6ad590aad68434eb478ea4e0c0305fdde22bfc6b (patch)
tree6b887b8e5608372e031ab123ae115fe58d79d87f /Source/cmRegularExpression.h
parentb253a0644d6244b84e36c82f124e4a80dbdc55ee (diff)
downloadCMake-6ad590aad68434eb478ea4e0c0305fdde22bfc6b.zip
CMake-6ad590aad68434eb478ea4e0c0305fdde22bfc6b.tar.gz
CMake-6ad590aad68434eb478ea4e0c0305fdde22bfc6b.tar.bz2
ENH: dot net almost working
Diffstat (limited to 'Source/cmRegularExpression.h')
-rw-r--r--Source/cmRegularExpression.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/Source/cmRegularExpression.h b/Source/cmRegularExpression.h
index f33879d..755b54b 100644
--- a/Source/cmRegularExpression.h
+++ b/Source/cmRegularExpression.h
@@ -220,12 +220,12 @@ public:
/**
* Index to start of first find.
*/
- inline long start() const;
+ inline std::string::size_type start() const;
/**
* Index to end of first find.
*/
- inline long end() const;
+ inline std::string::size_type end() const;
/**
* Returns true if two regular expressions have the same
@@ -259,8 +259,8 @@ public:
* Destructor.
*/
// awf added
- int start(int n) const;
- int end(int n) const;
+ std::string::size_type start(int n) const;
+ std::string::size_type end(int n) const;
std::string match(int n) const;
private:
@@ -306,7 +306,7 @@ inline cmRegularExpression::~cmRegularExpression ()
/**
* Set the start position for the regular expression.
*/
-inline long cmRegularExpression::start () const
+inline std::string::size_type cmRegularExpression::start () const
{
return(this->startp[0] - searchstring);
}
@@ -315,7 +315,7 @@ inline long cmRegularExpression::start () const
/**
* Returns the start/end index of the last item found.
*/
-inline long cmRegularExpression::end () const
+inline std::string::size_type cmRegularExpression::end () const
{
return(this->endp[0] - searchstring);
}
@@ -350,7 +350,7 @@ inline void cmRegularExpression::set_invalid ()
/**
* Return start index of nth submatch. start(0) is the start of the full match.
*/
-inline int cmRegularExpression::start(int n) const
+inline std::string::size_type cmRegularExpression::start(int n) const
{
return this->startp[n] - searchstring;
}
@@ -359,7 +359,7 @@ inline int cmRegularExpression::start(int n) const
/**
* Return end index of nth submatch. end(0) is the end of the full match.
*/
-inline int cmRegularExpression::end(int n) const
+inline std::string::size_type cmRegularExpression::end(int n) const
{
return this->endp[n] - searchstring;
}