PEBL 2.2
Psychology Experiment Building Language - Cross-platform psychological experiment development system
FormatParser.h File Reference
#include <string>
#include <vector>
#include "../objects/PColor.h"

Go to the source code of this file.

Classes

struct  FormatParser::FormatSegment
 

Namespaces

namespace  FormatParser
 

Enumerations

enum  FormatParser::Justification { FormatParser::JUSTIFY_NONE = 0 , FormatParser::JUSTIFY_LEFT = 1 , FormatParser::JUSTIFY_CENTER = 2 , FormatParser::JUSTIFY_RIGHT = 3 }
 Justification types for paragraph-level alignment. More...
 

Functions

std::vector< FormatSegmentFormatParser::ParseFormattedText (const std::string &input, int charWidth)
 Parse formatted text into segments.
 
bool FormatParser::ParseColor (const std::string &colorStr, PColor &outColor)
 
std::string FormatParser::StripFormatting (const std::string &input)
 Strip all formatting tags from text.