make comma a normal wordsplit char
This commit is contained in:
parent
2418dd787c
commit
76f3288fc8
1 changed files with 2 additions and 4 deletions
|
@ -90,7 +90,7 @@ public:
|
|||
for (i = 0; i < strlen(wild); i++)
|
||||
charclasses[int(wild[i])] = WILD;
|
||||
|
||||
char special[] = ".@+-,#'_\n\r\f";
|
||||
char special[] = ".@+-#'_\n\r\f";
|
||||
for (i = 0; i < strlen(special); i++)
|
||||
charclasses[int(special[i])] = special[i];
|
||||
|
||||
|
@ -460,14 +460,12 @@ bool TextSplit::text_to_words(const string &in)
|
|||
break;
|
||||
|
||||
case '.':
|
||||
case ',':
|
||||
{
|
||||
// Need a little lookahead here. At worse this gets the end null
|
||||
int nextc = it[it.getCpos()+1];
|
||||
int nextwhat = whatcc(nextc);
|
||||
if (m_inNumber) {
|
||||
// we're eliminating 132.jpg here. Good idea ?
|
||||
if (nextwhat != DIGIT && nextc != 'e' && nextc != 'E')
|
||||
if (nextwhat != DIGIT)
|
||||
goto SPACE;
|
||||
m_wordLen += it.appendchartostring(m_span);
|
||||
curspanglue = cc;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue