Back to index

lightning-sunbird  0.9+nobinonly
nsStringTest.cpp
Go to the documentation of this file.
00001 
00002 #include <iostream.h>
00003 #include "nsStr.h"
00004 #include "nsStringTest2.h"
00005 #include "nsString.h"
00006 #include "nsReadableUtils.h"
00007 
00008 int main(){
00009 
00010   nsString temp("\t\t\n\r\n\r25,* \t   \n\n \t");
00011   temp.CompressWhitespace();
00012 
00013   nsString temp1("\t\t\n\r\n\r25,* \t   \n\n \t");
00014   temp1.CompressSet("\t\n\r ",' ',false,false);
00015 
00016   nsString temp3("");
00017   char* s = ToNewCString(temp3);
00018   delete s;
00019 
00020   char* f = ToNewCString(nsAutoString(""));
00021   char* f1 = ToNewCString(nsCAutoString(""));
00022   delete f;
00023   delete f1;
00024   
00025 
00026   CStringTester gStringTester;
00027 
00028   gStringTester.TestI18nString();
00029 
00030   return 0;
00031 }
00032 
00033