Lines Matching refs:pStr
539 …sal_Unicode* pStr = (sal_Unicode*) malloc( nLength + sizeof(sal_Unicode)); // length + 1 (null ter… in replaceChar_001() local
540 CPPUNIT_ASSERT_MESSAGE("can't get memory for test", pStr != NULL); in replaceChar_001()
541 memset(pStr, 0, nLength + sizeof(sal_Unicode)); in replaceChar_001()
542 memcpy(pStr, aStr1.getStr(), nLength); in replaceChar_001()
544 rtl_ustr_replaceChar( pStr, 'e', 'u' ); in replaceChar_001()
545 rtl::OUString suStr(pStr, aStr1.getLength()); in replaceChar_001()
548 free(pStr); in replaceChar_001()
582 sal_Unicode* pStr = (sal_Unicode*) malloc(nLength); in replaceChar_WithLength_001() local
583 CPPUNIT_ASSERT_MESSAGE("can't get memory for test", pStr != NULL); in replaceChar_WithLength_001()
584 memcpy(pStr, aStr1.getStr(), nLength); in replaceChar_WithLength_001()
586 rtl_ustr_replaceChar_WithLength( pStr, 6, 'e', 'u' ); in replaceChar_WithLength_001()
587 rtl::OUString suStr(pStr, aStr1.getLength()); in replaceChar_WithLength_001()
590 free(pStr); in replaceChar_WithLength_001()
599 … sal_Unicode* pStr = (sal_Unicode*) malloc(nLength); // no null terminator is need in replaceChar_WithLength_002() local
600 CPPUNIT_ASSERT_MESSAGE("can't get memory for test", pStr != NULL); in replaceChar_WithLength_002()
601 memcpy(pStr, aStr1.getStr(), nLength); in replaceChar_WithLength_002()
603 rtl_ustr_replaceChar_WithLength( pStr, 6, 'e', 'u' ); in replaceChar_WithLength_002()
604 rtl::OUString suStr(pStr, aStr1.getLength()); in replaceChar_WithLength_002()
607 free(pStr); in replaceChar_WithLength_002()
640 …sal_Unicode* pStr = (sal_Unicode*) malloc(nLength + sizeof(sal_Unicode) ); // we need to add '\0'… in toAsciiLowerCase_001() local
641 CPPUNIT_ASSERT_MESSAGE("can't get memory for test", pStr != NULL); in toAsciiLowerCase_001()
642 …memset(pStr, 0, nLength + sizeof(sal_Unicode)); // empty the sal_Unico… in toAsciiLowerCase_001()
643 memcpy(pStr, aStr1.getStr(), nLength); in toAsciiLowerCase_001()
645 rtl_ustr_toAsciiLowerCase( pStr ); in toAsciiLowerCase_001()
646 rtl::OUString suStr(pStr, aStr1.getLength()); in toAsciiLowerCase_001()
649 free(pStr); in toAsciiLowerCase_001()
678 sal_Unicode* pStr = (sal_Unicode*) malloc(nLength); in toAsciiLowerCase_WithLength_001() local
679 CPPUNIT_ASSERT_MESSAGE("can't get memory for test", pStr != NULL); in toAsciiLowerCase_WithLength_001()
680 memcpy(pStr, aStr1.getStr(), nLength); in toAsciiLowerCase_WithLength_001()
682 rtl_ustr_toAsciiLowerCase_WithLength( pStr, 10 ); in toAsciiLowerCase_WithLength_001()
684 rtl::OUString suStr(pStr, aStr1.getLength()); in toAsciiLowerCase_WithLength_001()
692 free(pStr); in toAsciiLowerCase_WithLength_001()
722 …sal_Unicode* pStr = (sal_Unicode*) malloc(nLength + sizeof(sal_Unicode)); // length + null termina… in toAsciiUpperCase_001() local
723 CPPUNIT_ASSERT_MESSAGE("can't get memory for test", pStr != NULL); in toAsciiUpperCase_001()
724 memset(pStr, 0, nLength + sizeof(sal_Unicode)); in toAsciiUpperCase_001()
725 memcpy(pStr, aStr1.getStr(), nLength); in toAsciiUpperCase_001()
727 rtl_ustr_toAsciiUpperCase( pStr ); in toAsciiUpperCase_001()
728 rtl::OUString suStr(pStr, aStr1.getLength()); in toAsciiUpperCase_001()
731 free(pStr); in toAsciiUpperCase_001()
760 sal_Unicode* pStr = (sal_Unicode*) malloc(nLength); in toAsciiUpperCase_WithLength_001() local
761 CPPUNIT_ASSERT_MESSAGE("can't get memory for test", pStr != NULL); in toAsciiUpperCase_WithLength_001()
763 memcpy(pStr, aStr1.getStr(), nLength); in toAsciiUpperCase_WithLength_001()
764 rtl_ustr_toAsciiUpperCase_WithLength( pStr, 10 ); in toAsciiUpperCase_WithLength_001()
765 rtl::OUString suStr(pStr, aStr1.getLength()); in toAsciiUpperCase_WithLength_001()
769 free(pStr); in toAsciiUpperCase_WithLength_001()
799 sal_Unicode *pStr = (sal_Unicode*)malloc(nLength); in trim_WithLength_000_1() local
800 memcpy(pStr, suStr.getStr(), nLength); in trim_WithLength_000_1()
802 rtl_ustr_trim_WithLength( pStr, 0 ); in trim_WithLength_000_1()
803 free(pStr); in trim_WithLength_000_1()
810 sal_Unicode *pStr = (sal_Unicode*)malloc(nLength); in trim_WithLength_001() local
811 memcpy(pStr, suStr.getStr(), nLength); in trim_WithLength_001()
813 rtl_ustr_trim_WithLength( pStr, 2 ); in trim_WithLength_001()
815 CPPUNIT_ASSERT_MESSAGE("string should be empty", rtl::OUString(pStr).getLength() == 0); in trim_WithLength_001()
816 free(pStr); in trim_WithLength_001()
825 sal_Unicode *pStr = (sal_Unicode*)malloc(nLength); in trim_WithLength_002() local
826 memcpy(pStr, suStr.getStr(), nLength); in trim_WithLength_002()
828 rtl_ustr_trim_WithLength( pStr, 5 ); in trim_WithLength_002()
830 … CPPUNIT_ASSERT_MESSAGE("string should contain 'trim'", rtl::OUString(pStr).getLength() == 4); in trim_WithLength_002()
831 free(pStr); in trim_WithLength_002()
840 sal_Unicode *pStr = (sal_Unicode*)malloc(nLength); in trim_WithLength_003() local
841 memcpy(pStr, suStr.getStr(), nLength); in trim_WithLength_003()
843 rtl_ustr_trim_WithLength( pStr, 11 ); in trim_WithLength_003()
845 … CPPUNIT_ASSERT_MESSAGE("string should contain 'trim'", rtl::OUString(pStr).getLength() == 4); in trim_WithLength_003()
846 free(pStr); in trim_WithLength_003()
854 sal_Unicode *pStr = (sal_Unicode*)malloc(nLength); in trim_WithLength_004() local
855 memcpy(pStr, suStr.getStr(), nLength); in trim_WithLength_004()
857 rtl_ustr_trim_WithLength( pStr, 17 ); in trim_WithLength_004()
859 … CPPUNIT_ASSERT_MESSAGE("string should contain 'trim'", rtl::OUString(pStr).getLength() == 4); in trim_WithLength_004()
860 free(pStr); in trim_WithLength_004()
868 sal_Unicode *pStr = (sal_Unicode*)malloc(nLength); in trim_WithLength_005() local
869 memcpy(pStr, suStr.getStr(), nLength); in trim_WithLength_005()
871 rtl_ustr_trim_WithLength( pStr, suStr.getLength() ); in trim_WithLength_005()
873 …CPPUNIT_ASSERT_MESSAGE("string should contain 'trim \\t this'", rtl::OUString(pStr).getLength() ==… in trim_WithLength_005()
874 free(pStr); in trim_WithLength_005()
904 sal_Unicode *pStr = (sal_Unicode*)malloc(RTL_USTR_MAX_VALUEOFCHAR); in valueOfChar_001() local
905 if (pStr) in valueOfChar_001()
907 rtl_ustr_valueOfChar(pStr, 'A'); in valueOfChar_001()
909 CPPUNIT_ASSERT_MESSAGE("string should contain 'A'", pStr[0] == L'A'); in valueOfChar_001()
910 free(pStr); in valueOfChar_001()