mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-21 08:28:44 +00:00
Backed out merge changeset: b2d97621fa3b
Backed out merge revision to its first parent (99840e8413f2)
This commit is contained in:
parent
0b3186ac6a
commit
b09fb394da
1 changed files with 17 additions and 0 deletions
|
@ -323,6 +323,23 @@ bool CI18N::parseLabel(ucstring::const_iterator &it, ucstring::const_iterator &l
|
||||||
ucstring::const_iterator rewind = it;
|
ucstring::const_iterator rewind = it;
|
||||||
label.erase();
|
label.erase();
|
||||||
|
|
||||||
|
// first char must be A-Za-z@_
|
||||||
|
if (it != last &&
|
||||||
|
(
|
||||||
|
(*it >= '0' && *it <= '9')
|
||||||
|
|| (*it >= 'A' && *it <= 'Z')
|
||||||
|
|| (*it >= 'a' && *it <= 'z')
|
||||||
|
|| (*it == '_')
|
||||||
|
|| (*it == '@')
|
||||||
|
)
|
||||||
|
)
|
||||||
|
label.push_back(char(*it++));
|
||||||
|
else
|
||||||
|
{
|
||||||
|
it = rewind;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// other char must be [0-9A-Za-z@_]*
|
// other char must be [0-9A-Za-z@_]*
|
||||||
while (it != last &&
|
while (it != last &&
|
||||||
(
|
(
|
||||||
|
|
Loading…
Reference in a new issue