#include "ODi_TextContent_ListenerState.h"#include "ODi_Office_Styles.h"#include "ODi_Style_List.h"#include "ODi_Style_Style.h"#include "ODi_Style_MasterPage.h"#include "ODi_ListenerStateAction.h"#include "ODi_ListLevelStyle.h"#include "ODi_NotesConfiguration.h"#include "ODi_StartTag.h"#include "ODi_ElementStack.h"#include "ODi_TableOfContent_ListenerState.h"#include "ODi_Abi_Data.h"#include "ut_growbuf.h"#include "pf_Frag.h"#include "ie_exp_RTF.h"#include "ut_units.h"#include "ut_std_string.h"#include <ut_misc.h>#include <pd_Document.h>#include <pf_Frag_Strux.h>#include <list>#include <sstream>#include "pd_RDFQuery.h"Functions | |
| static UT_UCS4String | ODi_textp_fold_whitespace (const gchar *pBuffer, int length) |
| It seems from "6.1.2 White Space Characters" of the spec [2], in particular page 120 of [3], that internal whitespace is to be folded into space characters. | |
| static UT_UCS4String | ODi_textp_compact_two_or_more_spaces (const UT_UCS4String &s) |
| A stream of 2+ SPACE to be replaced with a single SPACE. | |
| static UT_UCS4String | ODi_textp_trim_whitespace_leading (const UT_UCS4String &s) |
| Trim leading whitespace completely. | |
| static UT_UCS4String ODi_textp_compact_two_or_more_spaces | ( | const UT_UCS4String & | s | ) | [static] |
A stream of 2+ SPACE to be replaced with a single SPACE.
References UT_UCS4String::length(), UT_UCS4String::reserve(), and UCS_SPACE.
Referenced by ODi_TextContent_ListenerState::charData().
| static UT_UCS4String ODi_textp_fold_whitespace | ( | const gchar * | pBuffer, | |
| int | length | |||
| ) | [static] |
It seems from "6.1.2 White Space Characters" of the spec [2], in particular page 120 of [3], that internal whitespace is to be folded into space characters.
Prior to folding anything in Z = { U+0009, U+000D, U+000A ) Is first replaced with SPACE = U+0020.
References UT_UCS4String::length().
Referenced by ODi_TextContent_ListenerState::charData().
| static UT_UCS4String ODi_textp_trim_whitespace_leading | ( | const UT_UCS4String & | s | ) | [static] |
Trim leading whitespace completely.
References UT_UCS4String::begin(), UT_UCS4String::end(), UT_UCS4String::substr(), and UCS_SPACE.
Referenced by ODi_TextContent_ListenerState::charData().
1.7.1