ICU-368 conditionally use <iostream> (and the std namespace),
<iostream.h>, or no streams at all depending on the value of U_IOSTREAM_SOURCE. X-SVN-Rev: 1252
This commit is contained in:
parent
5630fb77db
commit
ebd22f3413
@ -59,7 +59,6 @@
|
|||||||
#include "rbdata.h"
|
#include "rbdata.h"
|
||||||
#include "rbread.h"
|
#include "rbread.h"
|
||||||
|
|
||||||
#include <iostream.h>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "cmemory.h"
|
#include "cmemory.h"
|
||||||
|
@ -27,10 +27,15 @@
|
|||||||
#include "unicode/unistr.h"
|
#include "unicode/unistr.h"
|
||||||
#include "uhash.h"
|
#include "uhash.h"
|
||||||
|
|
||||||
|
#if U_IOSTREAM_SOURCE >= 199711
|
||||||
|
#include <iostream>
|
||||||
|
using namespace std;
|
||||||
|
#elif U_IOSTREAM_SOURCE >= 198506
|
||||||
|
#include <iostream.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
//DEBUGGING
|
//DEBUGGING
|
||||||
#include <iostream.h>
|
|
||||||
|
|
||||||
void
|
void
|
||||||
print(const UnicodeString& s,
|
print(const UnicodeString& s,
|
||||||
const char *name)
|
const char *name)
|
||||||
@ -1490,7 +1495,6 @@ UnicodeString::releaseDefaultConverter(UConverter *converter)
|
|||||||
// Streaming (to be removed)
|
// Streaming (to be removed)
|
||||||
//========================================
|
//========================================
|
||||||
|
|
||||||
#include <iostream.h>
|
|
||||||
#include "unistrm.h"
|
#include "unistrm.h"
|
||||||
#include "filestrm.h"
|
#include "filestrm.h"
|
||||||
|
|
||||||
@ -1620,6 +1624,8 @@ UnicodeStringStreamer::streamIn(UnicodeString *s,
|
|||||||
|
|
||||||
// console IO
|
// console IO
|
||||||
|
|
||||||
|
#if U_IOSTREAM_SOURCE
|
||||||
|
|
||||||
ostream&
|
ostream&
|
||||||
operator<<(ostream& stream,
|
operator<<(ostream& stream,
|
||||||
const UnicodeString& s)
|
const UnicodeString& s)
|
||||||
@ -1651,3 +1657,5 @@ operator<<(ostream& stream,
|
|||||||
stream.flush();
|
stream.flush();
|
||||||
return stream;
|
return stream;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -296,7 +296,12 @@ Formattable::adoptArray(Formattable* array, int32_t count)
|
|||||||
//----------------------------------------------------
|
//----------------------------------------------------
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
|
|
||||||
|
#if U_IOSTREAM_SOURCE >= 199711
|
||||||
|
#include <iostream>
|
||||||
|
using namespace std;
|
||||||
|
#elif U_IOSTREAM_SOURCE >= 198506
|
||||||
#include <iostream.h>
|
#include <iostream.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "unicode/datefmt.h"
|
#include "unicode/datefmt.h"
|
||||||
#include "unistrm.h"
|
#include "unistrm.h"
|
||||||
|
@ -35,9 +35,6 @@
|
|||||||
#include "unicode/dcfmtsym.h"
|
#include "unicode/dcfmtsym.h"
|
||||||
#include "mutex.h"
|
#include "mutex.h"
|
||||||
#include <float.h>
|
#include <float.h>
|
||||||
#ifdef _DEBUG
|
|
||||||
#include <iostream.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// *****************************************************************************
|
// *****************************************************************************
|
||||||
// class SimpleDateFormat
|
// class SimpleDateFormat
|
||||||
|
@ -10,11 +10,18 @@
|
|||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <iostream.h>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include "cmemory.h"
|
#include "cmemory.h"
|
||||||
#include "ucmp8.h"
|
#include "ucmp8.h"
|
||||||
|
|
||||||
|
#if U_IOSTREAM_SOURCE >= 199711
|
||||||
|
#include <iostream>
|
||||||
|
using namespace std;
|
||||||
|
#elif U_IOSTREAM_SOURCE >= 198506
|
||||||
|
#include <iostream.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
CompactByteArray* charDirArray = 0;
|
CompactByteArray* charDirArray = 0;
|
||||||
|
|
||||||
static const UChar LAST_CHAR_CODE_IN_FILE = 0xFFFD;
|
static const UChar LAST_CHAR_CODE_IN_FILE = 0xFFFD;
|
||||||
|
@ -10,7 +10,6 @@
|
|||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <iostream.h>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
@ -18,6 +17,13 @@
|
|||||||
#include "chartbld.h"
|
#include "chartbld.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if U_IOSTREAM_SOURCE >= 199711
|
||||||
|
#include <iostream>
|
||||||
|
using namespace std;
|
||||||
|
#elif U_IOSTREAM_SOURCE >= 198506
|
||||||
|
#include <iostream.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
const char CharTypeBuilder::tagStrings[] = "MnMcMeNdNlNoZsZlZpCcCfCsCoCnLuLlLtLmLoPcPdPsPePoSmScSkSoPiPf";
|
const char CharTypeBuilder::tagStrings[] = "MnMcMeNdNlNoZsZlZpCcCfCsCoCnLuLlLtLmLoPcPdPsPePoSmScSkSoPiPf";
|
||||||
const int16_t CharTypeBuilder::tagValues[] =
|
const int16_t CharTypeBuilder::tagValues[] =
|
||||||
{
|
{
|
||||||
|
@ -50,7 +50,7 @@ static UOption options[]={
|
|||||||
};
|
};
|
||||||
|
|
||||||
extern int
|
extern int
|
||||||
main(int argc, char *argv[]) {
|
main(int argc, const char *argv[]) {
|
||||||
/* read command line options */
|
/* read command line options */
|
||||||
argc=u_parseArgs(argc, argv, sizeof(options)/sizeof(options[0]), options);
|
argc=u_parseArgs(argc, argv, sizeof(options)/sizeof(options[0]), options);
|
||||||
|
|
||||||
|
@ -218,3 +218,4 @@ udata_writeUString(UNewDataMemory *pData, const UChar *s, UTextOffset length) {
|
|||||||
* End:
|
* End:
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -10,11 +10,18 @@
|
|||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <iostream.h>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
#include "ucmp16.h"
|
#include "ucmp16.h"
|
||||||
|
|
||||||
|
#if U_IOSTREAM_SOURCE >= 199711
|
||||||
|
#include <iostream>
|
||||||
|
using namespace std;
|
||||||
|
#elif U_IOSTREAM_SOURCE >= 198506
|
||||||
|
#include <iostream.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
CompactShortArray* ulxfrmArray = 0;
|
CompactShortArray* ulxfrmArray = 0;
|
||||||
|
|
||||||
enum ECharTypeMapping {
|
enum ECharTypeMapping {
|
||||||
|
Loading…
Reference in New Issue
Block a user