Dillo v3.1.1-46-g8a360e32
Loading...
Searching...
No Matches
lout::misc Namespace Reference

Miscellaneous stuff, which does not fit anywhere else. More...

Classes

class  BitSet
 A bit set, which automatically reallocates when needed. More...
 
class  NotSoSimpleVector
 Container similar to lout::misc::SimpleVector, but some cases of insertion optimized (used for hyphenation). More...
 
class  SimpleVector
 Simple (simpler than container::untyped::Vector and container::typed::Vector) template based vector. More...
 
class  StringBuffer
 A class for fast concatenation of a large number of strings. More...
 
class  ZoneAllocator
 A simple allocator optimized to handle many small chunks of memory. More...
 

Functions

template<class T >
min (T a, T b)
 
template<class T >
max (T a, T b)
 
template<class T >
min (T a, T b, T c)
 
template<class T >
max (T a, T b, T c)
 
void init (int argc, char *argv[])
 
void assertNotReached ()
 
void assertNotReached (const char *fmt,...)
 
void notImplemented (const char *name)
 
int roundInt (double d)
 
int AsciiTolower (char c)
 
int AsciiToupper (char c)
 
int AsciiStrcasecmp (const char *s1, const char *s2)
 
const char * boolToStr (bool b)
 

Variables

const char * prgName = PRGNAME
 

Detailed Description

Miscellaneous stuff, which does not fit anywhere else.

Actually, the other parts, beginning with object, depend on this.

Function Documentation

◆ AsciiStrcasecmp()

int lout::misc::AsciiStrcasecmp ( const char *  s1,
const char *  s2 
)
inline

Definition at line 77 of file misc.hh.

References AsciiTolower().

Referenced by dw::fltk::strstrip().

◆ AsciiTolower()

int lout::misc::AsciiTolower ( char  c)
inline

Definition at line 67 of file misc.hh.

Referenced by AsciiStrcasecmp(), and dw::core::style::strAsciiTolower().

◆ AsciiToupper()

int lout::misc::AsciiToupper ( char  c)
inline

Definition at line 72 of file misc.hh.

Referenced by main(), and textTimeout().

◆ assertNotReached() [1/2]

◆ assertNotReached() [2/2]

void lout::misc::assertNotReached ( const char *  fmt,
  ... 
)
inline

Definition at line 42 of file misc.hh.

References prgName.

◆ boolToStr()

◆ init()

void lout::misc::init ( int  argc,
char *  argv[] 
)

◆ max() [1/2]

template<class T >
T lout::misc::max ( a,
b 
)
inline

Definition at line 21 of file misc.hh.

Referenced by dw::Textblock::accumulateWordData(), dw::Textblock::accumulateWordForLine(), dw::Table::actuallyCalcCellSizes(), dw::Table::addCell(), dw::Textblock::addLine(), dw::Textblock::addParbreak(), dw::core::Polygon::addPoint(), dw::core::Region::addRectangle(), dw::core::Layout::adjustScrollPos(), dw::core::Layout::attachView(), dw::Table::calcAvailWidthForDescendant(), dw::Textblock::calcBorders(), dw::Textblock::calcExtraSpaceImpl(), dw::Table::calcExtremesSpanMultiCols(), dw::oof::OOFFloatsMgr::calcFloatX(), dw::core::Widget::calcHeight(), dw::Textblock::calcLineBreakWidth(), dw::Textblock::calcLinePartHeight(), dw::Textblock::calcTextSize(), dw::core::Widget::calcWidth(), dw::Image::contentX(), dw::Image::contentY(), dw::tablecell::correctAvailWidthOfChild(), dw::tablecell::correctCorrectedRequisitionOfChild(), dw::oof::OOFAwareWidget::correctExtremesByOOF(), dw::core::ui::ComplexButtonResource::correctExtremesOfChild(), dw::oof::OOFAwareWidget::correctRequisitionByOOF(), dw::core::ui::ComplexButtonResource::correctRequisitionOfChild(), dw::core::Layout::draw(), dw::core::style::drawBackgroundImage(), dw::core::style::StyleImage::ExternalImgRenderer::drawRow(), dw::Textblock::fillParagraphs(), dw::fltk::FltkFont::FltkFont(), dw::Table::forceCalcColumnExtremes(), dw::Textblock::TextblockIterator::getAllocation(), dw::oof::OOFPosAbsLikeMgr::getAvailHeightOfChild(), dw::core::ui::ComplexButtonResource::getAvailHeightOfChild(), dw::core::Widget::getAvailHeightOfChild(), dw::oof::OOFPosAbsLikeMgr::getAvailWidthOfChild(), dw::Textblock::getAvailWidthOfChild(), dw::core::ui::ComplexButtonResource::getAvailWidthOfChild(), dw::core::Widget::getAvailWidthOfChild(), dw::oof::OOFFloatsMgr::getBorder(), dw::oof::OOFFloatsMgr::getClearPosition(), dw::oof::OOFFloatsMgr::getClearPosition(), dw::Table::getExtreme(), dw::oof::OOFFloatsMgr::getExtremes(), dw::oof::OOFPosAbsLikeMgr::getExtremes(), dw::oof::OOFPosRelMgr::getExtremes(), dw::Bullet::getExtremesSimpl(), dw::oof::OOFFloatsMgr::getFloatsExtremes(), dw::oof::OOFFloatsMgr::getFloatsSize(), dw::Textblock::getGeneratorWidth(), dw::core::Layout::LayoutImgRenderer::getRefArea(), dw::oof::OOFFloatsMgr::getSize(), dw::oof::OOFPosAbsLikeMgr::getSize(), dw::oof::OOFPosRelMgr::getSize(), dw::Textblock::handleWordExtremes(), dw::Hyphenator::hyphenateSingleWord(), dw::core::Rectangle::intersectsWith(), max(), dw::core::Layout::queueDrawExcept(), dw::Textblock::queueDrawRange(), dw::fltk::FltkImgbuf::scaleBuffer(), dw::fltk::FltkViewport::scrollTo(), dw::core::Iterator::scrollTo(), dw::core::style::StyleImage::StyleImgRenderer::setBuffer(), dw::core::style::Color::shadeColor(), dw::Bullet::sizeRequestSimpl(), dw::Ruler::sizeRequestSimpl(), dw::Textblock::Line::totalHeight(), and dw::Textblock::wrapWordInFlow().

◆ max() [2/2]

template<class T >
T lout::misc::max ( a,
b,
c 
)
inline

Definition at line 27 of file misc.hh.

References max().

◆ min() [1/2]

◆ min() [2/2]

template<class T >
T lout::misc::min ( a,
b,
c 
)
inline

Definition at line 23 of file misc.hh.

References min().

◆ notImplemented()

◆ roundInt()

Variable Documentation

◆ prgName

const char * lout::misc::prgName = PRGNAME

Definition at line 33 of file misc.cc.

Referenced by assertNotReached(), assertNotReached(), and notImplemented().