JX Application Framework
|
#include "JStyledText.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 *tb) |
void | JReadLimitedMarkdown (const JString &text, JStyledText *st) |
JStyledText::TextRange | JPasteUNIXTerminalOutput (const JString &text, const JStyledText::TextIndex &pasteIndex, JStyledText *tb) |
Variables | |
const JRegex | theUNIXTerminalFormatPattern |
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 * | tb | ||
) |
void JReadLimitedMarkdown | ( | const JString & | text, |
JStyledText * | st | ||
) |
void JReadUNIXManOutput | ( | std::istream & | input, |
JStyledText * | tb | ||
) |
|
extern |
Parses text and approximates the formatting. Pastes the result into the existing text. Returns the number of characters inserted.