JX Application Framework
Loading...
Searching...
No Matches
Functions | Variables
jTextUtil.h File Reference
#include "JStyledText.h"
Include dependency graph for jTextUtil.h:
This graph shows which files directly or indirectly include this file:

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
 

Function Documentation

◆ JAnalyzeWhitespace()

JSize JAnalyzeWhitespace ( const JString buffer,
const JSize  tabWidth,
const bool  defaultUseSpaces,
bool useSpaces,
bool isMixed 
)

◆ JCalcWSFont()

JFont JCalcWSFont ( const JFont prevFont,
const JFont nextFont 
)

Calculates the appropriate style for whitespace between two styled words. We don't recalculate the font id because we only change underline and strike.

◆ JPasteUNIXTerminalOutput()

JStyledText::TextRange JPasteUNIXTerminalOutput ( const JString text,
const JStyledText::TextIndex pasteIndex,
JStyledText tb 
)

◆ JReadLimitedMarkdown()

void JReadLimitedMarkdown ( const JString text,
JStyledText st 
)

◆ JReadUNIXManOutput()

void JReadUNIXManOutput ( std::istream &  input,
JStyledText tb 
)

Variable Documentation

◆ theUNIXTerminalFormatPattern

const JRegex theUNIXTerminalFormatPattern
extern

Parses text and approximates the formatting. Pastes the result into the existing text. Returns the number of characters inserted.