Lines Matching refs:pStr2
744 sal_Char *pStr2 = (sal_Char*)malloc(strlen(pStr) + 1); in trim_WithLength_001() local
745 if (pStr2) in trim_WithLength_001()
747 strcpy(pStr2, pStr); in trim_WithLength_001()
748 rtl_str_trim_WithLength( pStr2, 2 ); in trim_WithLength_001()
750 CPPUNIT_ASSERT_MESSAGE("string should be empty", strlen(pStr2) == 0); in trim_WithLength_001()
751 free(pStr2); in trim_WithLength_001()
758 sal_Char *pStr2 = (sal_Char*)malloc(strlen(pStr) + 1); in trim_WithLength_002() local
759 if (pStr2) in trim_WithLength_002()
761 strcpy(pStr2, pStr); in trim_WithLength_002()
762 rtl_str_trim_WithLength( pStr2, 5 ); in trim_WithLength_002()
764 CPPUNIT_ASSERT_MESSAGE("string should contain 'trim'", strlen(pStr2) == 4); in trim_WithLength_002()
765 free(pStr2); in trim_WithLength_002()
772 sal_Char *pStr2 = (sal_Char*)malloc(strlen(pStr) + 1); in trim_WithLength_003() local
773 if (pStr2) in trim_WithLength_003()
775 strcpy(pStr2, pStr); in trim_WithLength_003()
776 rtl_str_trim_WithLength( pStr2, 11 ); in trim_WithLength_003()
778 CPPUNIT_ASSERT_MESSAGE("string should contain 'trim'", strlen(pStr2) == 4); in trim_WithLength_003()
779 free(pStr2); in trim_WithLength_003()
786 sal_Char *pStr2 = (sal_Char*)malloc(strlen(pStr) + 1); in trim_WithLength_004() local
787 if (pStr2) in trim_WithLength_004()
789 strcpy(pStr2, pStr); in trim_WithLength_004()
790 rtl_str_trim_WithLength( pStr2, 17 ); in trim_WithLength_004()
792 CPPUNIT_ASSERT_MESSAGE("string should contain 'trim'", strlen(pStr2) == 4); in trim_WithLength_004()
793 free(pStr2); in trim_WithLength_004()
800 sal_Char *pStr2 = (sal_Char*)malloc(strlen(pStr) + 1); in trim_WithLength_005() local
801 if (pStr2) in trim_WithLength_005()
803 strcpy(pStr2, pStr); in trim_WithLength_005()
804 rtl_str_trim_WithLength( pStr2, strlen(pStr2) ); in trim_WithLength_005()
806 CPPUNIT_ASSERT_MESSAGE("string should contain 'trim'", strlen(pStr2) == 11); in trim_WithLength_005()
807 free(pStr2); in trim_WithLength_005()