Lines Matching refs:OUString
59 inline void printUString( const ::rtl::OUString & str, const sal_Char * msg = "" ) in printUString()
73 bool t_fileExist(rtl::OUString const& _sFilename) in t_fileExist()
88 inline ::rtl::OUString getModulePath( void ) in getModulePath()
90 ::rtl::OUString suDirPath; in getModulePath()
95 suDirPath += rtl::OUString::createFromAscii("bin"); in getModulePath()
103 static rtl::OUString getExecutableDirectory() in getExecutableDirectory()
105 rtl::OUString fileName; in getExecutableDirectory()
112 rtl::OUString aDirURL = fileName.copy(0, nDirEnd); in getExecutableDirectory()
118 inline rtl::OUString t_getSourcePath(rtl::OString const& _sFilename) in t_getSourcePath()
121 rtl::OUString aDirURL(getExecutableDirectory()); in t_getSourcePath()
122 aDirURL += OUString::createFromAscii( "/"); in t_getSourcePath()
123 aDirURL += OUString::createFromAscii( _sFilename.getStr() ); in t_getSourcePath()
125 aDirURL += rtl::OUString::createFromAscii(".ini"); in t_getSourcePath()
127 aDirURL += rtl::OUString::createFromAscii("rc"); in t_getSourcePath()
182 rtl::OUString suIniname = t_getSourcePath(TESTSHL2_INI); in ctor_001()
185 rtl::OUString suGetname; // = rtl::OUString::createFromAscii(""); in ctor_001()
202 rtl::OUString suGetname; in ctor_002()
229 rtl::OUString suValue; in getFrom_001()
230 rtl::OUString suValuename = rtl::OUString::createFromAscii( "SOLAR_JAVA" ); in getFrom_001()
260 rtl::OUString suIniname = t_getSourcePath(TESTSHL2_INI); in getFrom_002()
262 rtl::OUString suGetname; in getFrom_002()
263 rtl::OUString suValuename = rtl::OUString::createFromAscii( "INHERITED_VALUE" ); in getFrom_002()
272 rtl::OUString suIniname = t_getSourcePath(TESTSHL2_INI); in getFrom_003()
274 rtl::OUString suGetname; in getFrom_003()
275 rtl::OUString suValuename = rtl::OUString::createFromAscii( "MY_VALUE" ); in getFrom_003()
276 rtl::OUString myDefault = rtl::OUString::createFromAscii( "2" ); in getFrom_003()
287 rtl::OUString suIniname = t_getSourcePath(PSEUDO_INI); in getFrom_004()
290 rtl::OUString suGetIniName; in getFrom_004()
294 sal_Int32 nIndex = suGetIniName.indexOf(rtl::OUString::createFromAscii( "pseudo" )); in getFrom_004()
300 rtl::OUString suValue; in getFrom_004()
301 rtl::OUString suKeyName = rtl::OUString::createFromAscii( "FILE" ); in getFrom_004()
304 … sal_Int32 nCompare = suValue.compareTo( rtl::OUString::createFromAscii("pseudo file") ); in getFrom_004()
311 rtl::OUString suKeyName = rtl::OUString::createFromAscii( "FILE" ); in getFrom_004_1()
312 rtl::OUString suGetValue; in getFrom_004_1()
316 …SSERT_MESSAGE("Bootstrap::get('FILE', ...)", suGetValue.compareTo( rtl::OUString::createFromAscii(… in getFrom_004_1()
324 rtl::OUString suCWD = getModulePath(); in ini_execProcess()
326 rtl::OUString suFileURL = suCWD; in ini_execProcess()
327 … suFileURL += rtl::OUString::createFromAscii("/") + rtl::OUString::createFromAscii(process_name) ; in ini_execProcess()
329 suFileURL += rtl::OUString::createFromAscii(".exe"); in ini_execProcess()
333 OUString suFlag( OUString::createFromAscii(flag) ); in ini_execProcess()
334 OUString suEnv1( OUString::createFromAscii("-env:UNO_SERVICES=service.rdb")); in ini_execProcess()
335 OUString suIniname = t_getSourcePath("rtl"); in ini_execProcess()
449 rtl::OUString suGetIniname; in setIniFilename_001()
454 rtl::OUString suIniname = t_getSourcePath(PSEUDO_INI); in setIniFilename_001()
457 rtl::OUString suGetname; in setIniFilename_001()
467 rtl::OUString suIniname = t_getSourcePath(TESTSHL2_INI); in setIniFilename_002()
472 rtl::OUString suGetname; in setIniFilename_002()
473 rtl::OUString suValuename = rtl::OUString::createFromAscii( "INHERITED_VALUE" ); in setIniFilename_002()
500 rtl::OUString suIniname = t_getSourcePath(TESTSHL2_INI); in getHandle_001()
507 rtl::OUString suIniname = t_getSourcePath(PSEUDO_INI); in getHandle_002()
516 rtl::OUString suValue; in getHandle_002()
517 rtl::OUString suKeyName = rtl::OUString::createFromAscii( "PSEUDOFILE" ); in getHandle_002()
521 …t use the handle which is returned by getHandle!", suValue.equals( rtl::OUString::createFromAscii(… in getHandle_002()
548 rtl::OUString suIniname = t_getSourcePath(TESTSHL2_INI); in set_001()
550 rtl::OUString suName = rtl::OUString::createFromAscii( "INHERITED_VALUE" ); in set_001()
551 rtl::OUString suValue = rtl::OUString::createFromAscii( "ok" ); in set_001()
554 rtl::OUString suGetValue; in set_001()
560 rtl::OUString suIniname = t_getSourcePath(TESTSHL2_INI); in set_002()
562 rtl::OUString suName = rtl::OUString::createFromAscii( "INHERITED_VALUE" ); in set_002()
563 rtl::OUString suGetOrientValue; in set_002()
568 rtl::OUString suValue = rtl::OUString::createFromAscii( TESTSHL2_INI ); in set_002()
571 rtl::OUString suGetValue; in set_002()
594 rtl::OUString suIniname = t_getSourcePath(TESTSHL2_INI); in expandMacrosFrom_001()
596 rtl::OUString suMacro = rtl::OUString::createFromAscii( "$MYVAR/expand1" ); in expandMacrosFrom_001()
600 … rtl::OUString suExpectedMacro = rtl::OUString::createFromAscii( "src680_test/expand1" ); in expandMacrosFrom_001()
615 rtl::OUString suIniname = t_getSourcePath(TESTSHL2_INI); in expandMacrosFrom_002()
619 …rtl::OUString suMacro = rtl::OUString::createFromAscii( "${" ); //rtlrc:Bootstrap:RTLVALUE… in expandMacrosFrom_002()
621 rtl::OUString aDirURL = OUString::createFromAscii( "$ORIGIN"); in expandMacrosFrom_002()
622 aDirURL += OUString::createFromAscii( "/"); in expandMacrosFrom_002()
623 aDirURL += OUString::createFromAscii( "rtl" ); in expandMacrosFrom_002()
625 aDirURL += rtl::OUString::createFromAscii(".ini"); in expandMacrosFrom_002()
627 aDirURL += rtl::OUString::createFromAscii("rc"); in expandMacrosFrom_002()
631 suMacro += rtl::OUString::createFromAscii( "::RTLVALUE}"); in expandMacrosFrom_002()
639 rtl::OUString suExpectedMacro = rtl::OUString::createFromAscii( "qadev17" ); in expandMacrosFrom_002()
644 rtl::OUString suIniname = t_getSourcePath(TESTSHL2_INI); in expandMacrosFrom_002_1()
649 rtl::OUString suMacro; in expandMacrosFrom_002_1()
651 aBootstrap.getFrom(rtl::OUString::createFromAscii( "SOFROMVALUE2" ), suMacro ); in expandMacrosFrom_002_1()
656 aBootstrap.getFrom(rtl::OUString::createFromAscii( "SOFROMVALUE" ), suMacro ); in expandMacrosFrom_002_1()
666 rtl::OUString suExpectedMacro = rtl::OUString::createFromAscii( "src680_qadev" ); in expandMacrosFrom_002_1()
674 rtl::OUString suIniname = t_getSourcePath(TESTSHL2_INI); in expandMacrosFrom_002_2()
679 rtl::OUString suMacro; in expandMacrosFrom_002_2()
680 aBootstrap.getFrom(rtl::OUString::createFromAscii( "SOFROMVALUE3" ), suMacro ); in expandMacrosFrom_002_2()
685 if (suMacro.equals(rtl::OUString::createFromAscii("testshl2_file") ) == sal_True) in expandMacrosFrom_002_2()
691 …T_MESSAGE("SOFROMVALUE3 should contain 'rtlfile'.", suMacro.equals(rtl::OUString::createFromAscii(… in expandMacrosFrom_002_2()
726 rtl::OUString suIniname = t_getSourcePath(TESTSHL2_INI); in expandMacrosFrom_003()
728 rtl::OUString suMacro[4]; in expandMacrosFrom_003()
729 suMacro[0] = rtl::OUString::createFromAscii( "$SYSUSERCONFIG" ); in expandMacrosFrom_003()
730 suMacro[1] = rtl::OUString::createFromAscii( "$SYSUSERHOME" ); in expandMacrosFrom_003()
731 suMacro[2] = rtl::OUString::createFromAscii( "$SYSBINDIR" ); in expandMacrosFrom_003()
732 suMacro[3] = rtl::OUString::createFromAscii( "$ORIGIN" ); in expandMacrosFrom_003()
748 rtl::OUString t(RTL_CONSTASCII_USTRINGPARAM("$RECURSIVE")); in testRecursion()
757 rtl::OUString t(RTL_CONSTASCII_USTRINGPARAM("$LINKED")); in testLink()
765 rtl::OUString t1( in testOverride()
772 rtl::OUString t2( in testOverride()
782 rtl::OUString t( in testNonexisting()
794 rtl::OUString p(t_getSourcePath(TESTSHL2_INI)); in testSection()
802 rtl::OUString t(b.makeStringAndClear()); in testSection()
842 rtl::OUString suIniname = t_getSourcePath(TESTSHL2_INI); in expandMacros_001()
844 rtl::OUString suMacro = rtl::OUString::createFromAscii( "$INHERITED_VALUE/well" ); in expandMacros_001()
847 rtl::OUString suName = rtl::OUString::createFromAscii( "INHERITED_VALUE" ); in expandMacros_001()
848 OUString suGetValue; in expandMacros_001()
850 suGetValue += OUString::createFromAscii( "/well" ); in expandMacros_001()
892 static void removeAndCreateFile(rtl::OUString const& _suFileURL, rtl::OString const& _sContent) in removeAndCreateFile()
927 rtl::OUString aFileURL(getExecutableDirectory()); in create_rtlrc()
929 aFileURL += rtl::OUString::createFromAscii("/rtl.ini"); in create_rtlrc()
931 aFileURL += rtl::OUString::createFromAscii("/rtlrc"); in create_rtlrc()
950 rtl::OUString aFileURL(getExecutableDirectory()); in create_testshl2rc()
952 aFileURL += rtl::OUString::createFromAscii("/testshl2.ini"); in create_testshl2rc()
954 aFileURL += rtl::OUString::createFromAscii("/testshl2rc"); in create_testshl2rc()
984 rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("/testshl2-link"))), in create_testshl2rc()
992 rtl::OUString aFileURL(getExecutableDirectory()); in create_pseudorc()
994 aFileURL += rtl::OUString::createFromAscii("/pseudo.ini"); in create_pseudorc()
996 aFileURL += rtl::OUString::createFromAscii("/pseudorc"); in create_pseudorc()
1009 rtl::OUString aDirURL(getModulePath()); in create_bootstrap_processrc()
1011 aDirURL += rtl::OUString::createFromAscii("/bootstrap_process.ini"); in create_bootstrap_processrc()
1013 aDirURL += rtl::OUString::createFromAscii("/bootstrap_processrc"); in create_bootstrap_processrc()