|
JX Application Framework
|
#include "jTextUtil.h"#include "JStyledText.h"#include "JStringIterator.h"#include "JRegex.h"#include "jStreamUtil.h"#include "JFontManager.h"#include "JColorManager.h"#include "jGlobals.h"#include "jAssert.h"Functions | |
| JFont | JCalcWSFont (const JFont &prevFont, const JFont &nextFont) |
| JSize | JAnalyzeWhitespace (const JString &buffer, const JSize tabWidth, const bool defaultUseSpaces, bool *useSpaces, bool *isMixed) |
| void | JReadUNIXManOutput (std::istream &input, JStyledText *st) |
| JStyledText::TextRange | JPasteUNIXTerminalOutput (const JString &text, const JStyledText::TextIndex &pasteIndex, JStyledText *st) |
| void | jReplaceMarkdownPattern (JStringIterator *citer, const JRegex &pattern, const JFont &f, JRunArray< JFont > *styles) |
| void | JReadLimitedMarkdown (const JString &text, JStyledText *st) |
Variables | |
| const JRegex | theUNIXTerminalFormatPattern = "\033\\[([0-9]+(?:;[0-9]+)*)?m" |
| JSize JAnalyzeWhitespace | ( | const JString & | buffer, |
| const JSize | tabWidth, | ||
| const bool | defaultUseSpaces, | ||
| bool * | useSpaces, | ||
| bool * | isMixed | ||
| ) |
Calculates the appropriate style for whitespace between two styled words. We don't recalculate the font id because we only change underline and strike.
| JStyledText::TextRange JPasteUNIXTerminalOutput | ( | const JString & | text, |
| const JStyledText::TextIndex & | pasteIndex, | ||
| JStyledText * | st | ||
| ) |
| void JReadLimitedMarkdown | ( | const JString & | text, |
| JStyledText * | st | ||
| ) |
| void JReadUNIXManOutput | ( | std::istream & | input, |
| JStyledText * | st | ||
| ) |
| void jReplaceMarkdownPattern | ( | JStringIterator * | citer, |
| const JRegex & | pattern, | ||
| const JFont & | f, | ||
| JRunArray< JFont > * | styles | ||
| ) |
| const JRegex theUNIXTerminalFormatPattern = "\033\\[([0-9]+(?:;[0-9]+)*)?m" |
Parses text and approximates the formatting. Pastes the result into the existing text. Returns the number of characters inserted.