LibreOffice Module shell (master) 1
|
#include <malloc.h>
#include <windows.h>
#include <stdio.h>
#include <fcntl.h>
#include <io.h>
#include "types.hxx"
#include <string>
#include <strsafe.h>
Go to the source code of this file.
Macros | |
#define | WIN32_LEAN_AND_MEAN |
#define | STRSAFE_NO_DEPRECATE |
Functions | |
std::wstring | StringToWString (const std::string &String) |
Convert a string to a wstring using CP_ACP. More... | |
std::string | WStringToString (const std::wstring &String) |
Convert a wstring to a string using CP_ACP. More... | |
std::wstring | UTF8ToWString (const std::string &String) |
Convert a string to a wstring using CP_UTF8. More... | |
std::wstring | GetResString (int ResId) |
Retrieve a string from the resources of this module. More... | |
bool | HasOnlySpaces (const std::wstring &String) |
helper function to judge if the string is only has spaces. More... | |
std::wstring | getShortPathName (const std::wstring &aLongName) |
convert LocaleSet pair into Windows LCID identifier. More... | |
LCID | LocaleSetToLCID (const LocaleSet_t &Locale) |
convert LocaleSet pair into Microsoft List of Locale ID (LCID) according to ISO-639 and ISO-3166. More... | |
void | OutputDebugStringFormatW (LPCWSTR pFormat,...) |
#define STRSAFE_NO_DEPRECATE |
Definition at line 36 of file utilities.hxx.
#define WIN32_LEAN_AND_MEAN |
Definition at line 26 of file utilities.hxx.
std::wstring GetResString | ( | int | ResId | ) |
Retrieve a string from the resources of this module.
Definition at line 81 of file utilities.cxx.
References GetCurrentModuleHandle(), MAX_RES_STRING, and OutputDebugStringFormatW().
Referenced by CPropertySheet::AddPages(), writer_document_statistic_reader::fill_description_section(), calc_document_statistic_reader::fill_description_section(), draw_impress_math_document_statistic_reader::fill_description_section(), document_statistic_reader::fill_origin_section(), CInfoTip::GetInfoTip(), CPropertySheet::InitPropPageStatistics(), and list_view_builder::setup_list_view().
std::wstring getShortPathName | ( | const std::wstring & | aLongName | ) |
convert LocaleSet pair into Windows LCID identifier.
convert LocaleSet pair into Windows LCID identifier.
Definition at line 122 of file utilities.cxx.
References length.
Referenced by CThumbviewer::Extract(), CColumnInfo::GetItemData(), CPropertySheet::Initialize(), CInfoTip::Load(), and COooFilter::Load().
bool HasOnlySpaces | ( | const std::wstring & | String | ) |
helper function to judge if the string is only has spaces.
Definition at line 100 of file utilities.cxx.
References p, SPACE_CHAR, and String.
Referenced by CContentReader::characters(), and CMetaInfoReader::characters().
LCID LocaleSetToLCID | ( | const LocaleSet_t & | Locale | ) |
convert LocaleSet pair into Microsoft List of Locale ID (LCID) according to ISO-639 and ISO-3166.
http://etext.lib.virginia.edu/tei/iso639.html http://nl.ijs.si/gnusl/cee/std/ISO_3166.html
Locale,LocaleSet |
Definition at line 154 of file utilities.cxx.
References EMPTY_LOCALE, LANG_SPANISH, and Locale.
Referenced by COooFilter::GetChunk().
|
inline |
Definition at line 78 of file utilities.hxx.
References args.
Referenced by CPropertySheet::AddRef(), CPropertyHdl::CPropertyHdl(), CPropertySheet::CPropertySheet(), DllCanUnloadNow(), DllGetClassObject(), DllMain(), CThumbviewer::Extract(), GetCurrentModuleHandle(), GetResString(), CPropertyHdl::Initialize(), CPropertyHdl::LoadProperties(), CPropertyHdl::QueryInterface(), CPropertySheet::Release(), and CPropertySheet::~CPropertySheet().
std::wstring StringToWString | ( | const std::string & | String | ) |
Convert a string to a wstring using CP_ACP.
Definition at line 63 of file utilities.cxx.
References String, and StringToWString().
std::wstring UTF8ToWString | ( | const std::string & | String | ) |
Convert a string to a wstring using CP_UTF8.
Definition at line 75 of file utilities.cxx.
References String, and StringToWString().
std::string WStringToString | ( | const std::wstring & | String | ) |
Convert a wstring to a string using CP_ACP.
Definition at line 69 of file utilities.cxx.
References String, and WStringToString().