|
AMFP Enhanced
C++ reference: the code this unofficial fork added
|
greedy word wrap with pluggable width and break rules, unit tested in tests/cpp/test_word_wrap.cpp. More...
#include <cstddef>#include <utility>#include <vector>Go to the source code of this file.
Namespaces | |
| namespace | hpl |
Typedefs | |
| typedef std::vector< std::pair< size_t, size_t > > | hpl::tWrapRows |
Functions | |
| template<class TWidth, class TCanBreak> | |
| void | hpl::WordWrapRows (const wchar_t *apText, size_t alLen, float afMaxWidth, TWidth afWidth, TCanBreak afCanBreak, tWrapRows &aRows) |
| afWidth(start, end) gives the drawn width of s[start, end). | |
greedy word wrap with pluggable width and break rules, unit tested in tests/cpp/test_word_wrap.cpp.
Used by iFontData::GetWordWrapRows when native CJK is on.
Break opportunities:
Definition in file WordWrap.h.