freebsd 4 port

This commit is contained in:
dockes
2005-12-07 15:41:50 +00:00
parent 97987cf0d8
commit ae6ce2638a
6 changed files with 12 additions and 8 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
#ifndef _UTF8ITER_H_INCLUDED_
#define _UTF8ITER_H_INCLUDED_
/* @(#$Id: utf8iter.h,v 1.3 2005-03-17 14:02:06 dockes Exp $ (C) 2004 J.F.Dockes */
/* @(#$Id: utf8iter.h,v 1.4 2005-12-07 15:41:50 dockes Exp $ (C) 2004 J.F.Dockes */
/**
* A small helper class to iterate over utf8 strings. This is not an
@@ -137,7 +137,7 @@ class Utf8Iter {
}
operator string() {
if (bad || (!cl && compute_cl() < 0)) {
return false;
return std::string("");
}
return s.substr(pos, cl);
}