VirtualBox

source: vbox/trunk/src/libs/xpcom18a4/xpcom/tests/windows/nsStringTest.cpp@ 8234

Last change on this file since 8234 was 1, checked in by vboxsync, 55 years ago

import

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 584 bytes
Line 
1
2#include <iostream.h>
3#include "nsStr.h"
4#include "nsStringTest2.h"
5#include "nsString.h"
6#include "nsReadableUtils.h"
7
8int main(){
9
10 nsString temp("\t\t\n\r\n\r25,* \t \n\n \t");
11 temp.CompressWhitespace();
12
13 nsString temp1("\t\t\n\r\n\r25,* \t \n\n \t");
14 temp1.CompressSet("\t\n\r ",' ',false,false);
15
16 nsString temp3("");
17 char* s = ToNewCString(temp3);
18 delete s;
19
20 char* f = ToNewCString(nsAutoString(""));
21 char* f1 = ToNewCString(nsCAutoString(""));
22 delete f;
23 delete f1;
24
25
26 CStringTester gStringTester;
27
28 gStringTester.TestI18nString();
29
30 return 0;
31}
32
33
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette