1 #include "ace/OS_main.h"
2 #include "ace/SString.h"
3 #include "ace/Log_Msg.h"
7 ACE_TMAIN (int, ACE_TCHAR
*[])
9 ACE_CString
s1 ("hello");
10 ACE_CString
s2 ("world");
11 ACE_CString
s3 ("el");
12 ACE_NS_WString
s4 ("hello");
13 ACE_NS_WString
s5 ("world");
14 ACE_NS_WString
s6 ("el");
16 ACE_ASSERT (s1
!= s2
);
17 ACE_ASSERT (s1
.strstr (s2
) == ACE_CString::npos
);
18 ACE_ASSERT (s1
.strstr (s2
) == ACE_CString::npos
);
19 ACE_ASSERT (s1
.strstr (s3
));
20 ACE_ASSERT (s4
.strstr (s5
) == ACE_NS_WString::npos
);
21 ACE_ASSERT (s5
.strstr (s6
));