Date: prev next · Thread: first prev next last
2010 Archives by date, by thread · List index


Hi,

CONTEXT:

I like short naming, thus I find RTL_CONSTASCII_USTRINGPARAM far too long.

But the  there is C2U. That is defined 61 times and sometimes as:
#define C2U(cChar) OUString::createFromAscii(cChar)
and on other places as:
#define C2U(cChar) ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(cChar))

./filter/inc/filter/msfilter/msocximex.hxx://#define C2U(cChar)
rtl::OUString::createFromAscii(cChar)
./filter/source/msfilter/msocximex.cxx:#define C2U(cChar)
rtl::OUString::createFromAscii(cChar)
./xmloff/source/core/xmlexp.cxx:#define C2U(cChar) OUString(
RTL_CONSTASCII_USTRINGPARAM(cChar) )
./xmloff/source/core/DocumentSettingsContext.cxx:#define C2U(cChar)
::rtl::OUString::createFromAscii(cChar)
./svl/source/config/srchcfg.cxx:#define C2U(cChar)
OUString::createFromAscii(cChar)
./svl/source/config/asiancfg.cxx:#define C2U(cChar)
OUString::createFromAscii(cChar)
./svl/source/config/cjkoptions.cxx:#define C2U(cChar)
OUString::createFromAscii(cChar)
./binfilter/bf_svx/source/options/svx_asiancfg.cxx:#define C2U(cChar)
OUString::createFromAscii(cChar)
./binfilter/bf_sfx2/source/config/sfx2_misccfg.cxx:#define C2U(cChar)
OUString::createFromAscii(cChar)
./binfilter/bf_svtools/source/config/svt_cjkoptions.cxx:#define C2U(cChar)
OUString::createFromAscii(cChar)
./binfilter/bf_svtools/source/config/svt_misccfg.cxx:#define C2U(cChar)
OUString::createFromAscii(cChar)
./binfilter/bf_svtools/source/config/svt_colorcfg.cxx:#define C2U(cChar)
OUString::createFromAscii(cChar)
./binfilter/bf_sw/source/ui/envelp/sw_envimg.cxx:#define C2U(cChar)
OUString::createFromAscii(cChar)
./binfilter/bf_sw/source/ui/config/sw_dbconfig.cxx:/*N*/ #define C2U(cChar)
OUString::createFromAscii(cChar)
./binfilter/bf_sw/source/ui/config/sw_modcfg.cxx:#define C2U(cChar)
OUString::createFromAscii(cChar)
./binfilter/bf_sw/source/ui/config/sw_prtopt.cxx:/*N*/ #define C2U(cChar)
OUString::createFromAscii(cChar)
./binfilter/bf_sw/source/ui/config/sw_usrpref.cxx:/*N*/ #define C2U(cChar)
OUString::createFromAscii(cChar)
./binfilter/bf_sw/source/ui/config/sw_fontcfg.cxx:/*N*/ #define C2U(cChar)
OUString::createFromAscii(cChar)
./binfilter/bf_sw/source/ui/wrtsh/sw_wrtsh3.cxx:#define C2U(cChar)
::rtl::OUString::createFromAscii(cChar)
./binfilter/bf_sw/source/ui/dbui/sw_dbmgr.cxx:#define C2U(cChar)
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(cChar))
./binfilter/bf_sw/source/ui/app/sw_docshini.cxx:#define C2U(cChar)
OUString::createFromAscii(cChar)
./binfilter/bf_sw/source/ui/app/sw_swmodul1.cxx:#define C2U(char)
::rtl::OUString::createFromAscii(char)
./binfilter/bf_sw/source/core/unocore/sw_SwXTextDefaults.cxx:#define
C2U(cChar) OUString::createFromAscii(cChar)
./binfilter/bf_sw/source/core/text/sw_inftxt.cxx:#define C2U(cChar)
::rtl::OUString::createFromAscii(cChar)
./binfilter/bf_sw/source/core/txtnode/sw_txtedt.cxx:#define C2U(cChar)
::rtl::OUString::createFromAscii(cChar)
./binfilter/bf_sw/source/core/fields/sw_authfld.cxx:#define C2U(cChar)
::rtl::OUString::createFromAscii(cChar)
./binfilter/inc/bf_sw/unoobj.hxx:#define C2U(cChar)
::rtl::OUString::createFromAscii(cChar)
./binfilter/bf_starmath/source/starmath_unomodel.cxx:#define
C2U(cChar)         ::rtl::OUString::createFromAscii(cChar)
./sd/source/ui/annotations/annotationmanager.cxx:#define C2U(x) OUString(
RTL_CONSTASCII_USTRINGPARAM( x ) )
./sd/source/ui/slideshow/slideshow.cxx:#define C2U(x) OUString(
RTL_CONSTASCII_USTRINGPARAM(x) )
./sd/source/ui/slideshow/SlideShowRestarter.cxx:#define C2U(x) OUString(
RTL_CONSTASCII_USTRINGPARAM(x) )
./sd/source/ui/table/TableDesignPane.cxx:#define C2U(x) OUString(
RTL_CONSTASCII_USTRINGPARAM( x ) )
./sd/source/ui/func/fuhhconv.cxx:#define C2U(cChar)
rtl::OUString::createFromAscii(cChar)
./svtools/source/misc/bindablecontrolhelper.cxx:#define C2U(cChar)
rtl::OUString::createFromAscii(cChar)
./svtools/source/config/extcolorcfg.cxx:#define C2U(cChar)
OUString::createFromAscii(cChar)
./svtools/source/config/htmlcfg.cxx:#define C2U(cChar)
OUString::createFromAscii(cChar)
./svtools/source/config/fontsubstconfig.cxx:#define C2U(cChar)
OUString::createFromAscii(cChar)
./svtools/source/config/colorcfg.cxx:#define C2U(cChar)
OUString::createFromAscii(cChar)
./sw/inc/unomid.h:#define C2U(cChar) rtl::OUString::createFromAscii( cChar )
./sw/source/ui/smartmenu/stmenu.cxx:#define C2U(cChar)
rtl::OUString::createFromAscii(cChar)
./sw/source/core/edit/edlingu.cxx:#define C2U(cChar)
rtl::OUString::createFromAscii(cChar)
./extensions/source/bibliography/bibload.cxx:#define C2U(cChar)
OUString::createFromAscii(cChar)
./extensions/source/bibliography/bibview.cxx:#define C2U( cChar )
::rtl::OUString::createFromAscii( cChar )
./extensions/source/bibliography/bibbeam.cxx:#define C2U(cChar)
OUString::createFromAscii(cChar)
./extensions/source/bibliography/datman.cxx:#define C2U(cChar)
::rtl::OUString::createFromAscii(cChar)
./extensions/source/bibliography/bibconfig.cxx:#define C2U(cChar)
OUString::createFromAscii(cChar)
./extensions/source/bibliography/framectr.cxx:#define C2U(cChar)
OUString::createFromAscii(cChar)
./extensions/source/bibliography/bibcont.cxx:#define C2U(cChar)
OUString::createFromAscii(cChar)
./extensions/source/bibliography/general.cxx:#define C2U(cChar)
OUString::createFromAscii(cChar)
./extensions/source/bibliography/bibmod.cxx:#define C2U(cChar)
OUString::createFromAscii(cChar)
./extensions/source/bibliography/toolbar.cxx:#define C2U(cChar)
OUString::createFromAscii(cChar)
./editeng/source/misc/acorrcfg.cxx:#define C2U(cChar)
OUString::createFromAscii(cChar)
./editeng/source/editeng/textconv.cxx:#define C2U(cChar)
OUString::createFromAscii(cChar)
./sccomp/source/solver/solver.cxx:#define C2U(constAsciiStr)
(::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( constAsciiStr ) ))
./svx/source/dialog/svxbmpnumvalueset.cxx:#define C2U(cChar)
OUString::createFromAscii(cChar)
./svx/source/dialog/rubydialog.cxx:#define C2U(cChar)
rtl::OUString::createFromAscii(cChar)
./svx/source/smarttags/SmartTagMgr.cxx:#define C2U(cChar)
rtl::OUString::createFromAscii(cChar)
./svx/source/table/accessibletableshape.cxx:#define C2U(x)
OUString(RTL_CONSTASCII_USTRINGPARAM(x))
./svx/source/mnuctrls/SmartTagCtl.cxx~:#define C2U(cChar)
rtl::OUString::createFromAscii(cChar)
./svx/source/mnuctrls/SmartTagCtl.cxx.org:#define C2U(cChar)
rtl::OUString::createFromAscii(cChar)
./svx/source/unodialogs/textconversiondlgs/chinese_translation_unodialog.cxx:#define
C2U(cChar) rtl::OUString::createFromAscii(cChar)
./chart2/source/inc/macros.hxx:#define C2U(constAsciiStr) (::rtl::OUString(
RTL_CONSTASCII_USTRINGPARAM( constAsciiStr ) ))
./unotools/source/config/javaoptions.cxx:#define C2U(cChar)
OUString::createFromAscii(cChar)
./unotools/source/config/misccfg.cxx:#define C2U(cChar)
OUString::createFromAscii(cChar)
./unotools/source/config/fltrcfg.cxx:#define C2U(cChar)
OUString::createFromAscii(cChar)
./unotools/source/config/configitem.cxx:#define C2U(cChar)
OUString::createFromAscii(cChar)
./cui/source/dialogs/SpellDialog.cxx:#define
C2U(cChar)
::rtl::OUString::createFromAscii(cChar)
./cui/source/options/optinet2.cxx:#define C2U(cChar)
OUString::createFromAscii(cChar)
./cui/source/options/optsave.cxx:#define C2U(cChar)
OUString::createFromAscii(cChar)
./cui/source/options/optasian.cxx:#define C2U(cChar)
rtl::OUString::createFromAscii(cChar)
./cui/source/options/treeopt.cxx:    #define C2U(cChar)      rtl::OUString(
RTL_CONSTASCII_USTRINGPARAM( cChar ) )
./cui/source/options/optlingu.cxx:#define C2U(cChar)
OUString::createFromAscii(cChar)
./cui/source/options/optgdlg.cxx:#define C2U(cChar)
OUString::createFromAscii(cChar)

And There is also A2OU.

QUESTIONS:

Can those defines be centralized to one header file?
Can C2U be spit up in C2UVAR and C2UCONST (or something like that)?

Joost

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.