#include <stdlib.h>#include <string.h>#include "ut_string.h"#include "ut_std_string.h"#include "ut_bytebuf.h"#include "ut_base64.h"#include "ut_locale.h"#include "ut_units.h"#include "pt_Types.h"#include "pd_Document.h"#include "ie_impexp_DocBook.h"#include "ie_exp_DocBook.h"#include "pp_AttrProp.h"#include "px_ChangeRecord.h"#include "px_CR_Object.h"#include "px_CR_Span.h"#include "px_CR_Strux.h"#include "xap_App.h"#include "xap_EncodingManager.h"#include "ap_Strings.h"#include "fd_Field.h"#include "ut_path.h"#include "ut_string_class.h"Defines | |
| #define | BT_NORMAL 1 |
| #define | BT_PLAINTEXT 2 |
Functions | |
| static char * | _stripSuffix (const char *from, char delimiter) |
| static char * | _stripSuffix (const UT_UTF8String &from, char delimiter) |
| #define BT_NORMAL 1 |
Referenced by s_DocBook_Listener::_closeParagraph().
| #define BT_PLAINTEXT 2 |
| static char* _stripSuffix | ( | const char * | from, | |
| char | delimiter | |||
| ) | [static] |
removes the suffix from a string by searching backwards for the specified character delimiter. If the delimiter is not found, a copy of the original string is returned
eg. _stripSuffix("/home/user/file.png, '.') returns "/home/user/file" _stripSuffix("/home/user/foo_bar, '_') returns /home/user/foo _stripSuffix("/home/user/file.png, '_') returns /home/user/file.png" TODO: put this in UT_String somehow, it came from ie_exp_HTML.
Referenced by s_XSL_FO_Listener::_handleDataItems(), s_WML_Listener::_handleDataItems(), s_DocBook_Listener::_handleDataItems(), s_WML_Listener::_handleImage(), s_DocBook_Listener::_handleImage(), s_DocBook_Listener::_handlePositionedImage(), and _stripSuffix().
| static char* _stripSuffix | ( | const UT_UTF8String & | from, | |
| char | delimiter | |||
| ) | [static] |
References _stripSuffix(), and UT_UTF8String::utf8_str().
1.7.1