#ifndef TEXTUTILS_H
#define TEXTUTILS_H
-/// return true if the char is a meta-character newline
-inline
-bool IsNewlineChar(char c)
-{
- return (c == Paragraph::META_NEWLINE);
-}
-
-
/// return true if the char is a word separator
inline
bool IsSeparatorChar(char c)
}
-/// return true if the char is a meta-character for hfill
-inline
-bool IsHfillChar(char c)
-{
- return (c == Paragraph::META_HFILL);
-}
-
-
/// return true if the char is a meta-character for an inset
inline
bool IsInsetChar(char c)
|| c == '^'
|| c == '/'
|| c == '\\'
- || c == Paragraph::META_NEWLINE
);
}
{
return !(IsSeparatorChar(c)
|| IsKommaChar(c)
- || IsHfillChar(c)
|| IsInsetChar(c));
}