summaryrefslogtreecommitdiff
path: root/Bus
diff options
context:
space:
mode:
authorfcolin2007-02-01 13:04:32 +0000
committerfcolin2007-02-01 13:04:32 +0000
commite5f6a7ba41783fbe9987ea30d6fd4f80ed283649 (patch)
treeddfed621f6470d6e648e9819800a1e350ce53d03 /Bus
parent4d7c578af340149c0a11866e51613048ce936666 (diff)
downloadivy-cplusplus-e5f6a7ba41783fbe9987ea30d6fd4f80ed283649.zip
ivy-cplusplus-e5f6a7ba41783fbe9987ea30d6fd4f80ed283649.tar.gz
ivy-cplusplus-e5f6a7ba41783fbe9987ea30d6fd4f80ed283649.tar.bz2
ivy-cplusplus-e5f6a7ba41783fbe9987ea30d6fd4f80ed283649.tar.xz
Utilisateur : Fcolin Date : 23/09/05 Heure : 15:27 Archivé dans $/Bus/Ivy Commentaire: (vss 10)
Diffstat (limited to 'Bus')
-rw-r--r--Bus/Ivy/Regexp.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/Bus/Ivy/Regexp.cxx b/Bus/Ivy/Regexp.cxx
index 4ba60e3..5916ec8 100644
--- a/Bus/Ivy/Regexp.cxx
+++ b/Bus/Ivy/Regexp.cxx
@@ -1556,10 +1556,10 @@ int Regexp::SubStrings() const
return ret;
}
-int Regexp::SubStart( unsigned int i ) const
+size_t Regexp::SubStart( size_t i ) const
{
ClearErrorString();
- int ret = -1;
+ size_t ret = -1;
if ( rc )
ret = rc->startp[safeIndex(i)] - str;
else
@@ -1567,10 +1567,10 @@ int Regexp::SubStart( unsigned int i ) const
return ret;
}
-int Regexp::SubLength( unsigned int i ) const
+size_t Regexp::SubLength( size_t i ) const
{
ClearErrorString();
- int ret = -1;
+ size_t ret = -1;
if ( rc )
{
i = safeIndex(i);
@@ -1598,19 +1598,19 @@ void Regexp::Dump()
}
#endif
-int Regexp::safeIndex( unsigned int i ) const
+size_t Regexp::safeIndex( size_t i ) const
{
return i < Regexp::NSUBEXP ? i : Regexp::NSUBEXP;
}
-const ivy::string Regexp::operator[]( unsigned int i ) const
+const ivy::string Regexp::operator[]( size_t i ) const
{
ivy::string value;
ClearErrorString();
ASSERT( rc );
if ( rc )
{
- int len = SubLength(i);
+ size_t len = SubLength(i);
//char * szbuf = buffer.GetBufferSetLength( len );
//memcpy( szbuf, rc->startp[i], len * sizeof(char) );
//buffer.ReleaseBuffer();
@@ -1672,7 +1672,7 @@ ivy::string regexp::GetReplaceString( const char* sReplaceExp ) const
}
// First compute the length of the string
- int replacelen = 0;
+ size_t replacelen = 0;
while ((c = *src++) != '\0')
{
if (c == '&')