mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-18 11:14:22 +00:00
ICU-396 remove XMLConverter to icuapps
X-SVN-Rev: 3121
This commit is contained in:
parent
b613aebe31
commit
509060e251
8 changed files with 1 additions and 1340 deletions
2
icu4c/source/configure
vendored
2
icu4c/source/configure
vendored
|
@ -3910,7 +3910,6 @@ trap 'rm -fr `echo "README icudefs.mk \
|
|||
test/Makefile test/testdata/Makefile test/intltest/Makefile test/cintltst/Makefile \
|
||||
test/ieeetest/Makefile \
|
||||
samples/Makefile samples/date/Makefile samples/cal/Makefile \
|
||||
samples/XMLConverter/Makefile \
|
||||
common/unicode/platform.h common/icucfg.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
||||
EOF
|
||||
cat >> $CONFIG_STATUS <<EOF
|
||||
|
@ -4068,7 +4067,6 @@ CONFIG_FILES=\${CONFIG_FILES-"README icudefs.mk \
|
|||
test/Makefile test/testdata/Makefile test/intltest/Makefile test/cintltst/Makefile \
|
||||
test/ieeetest/Makefile \
|
||||
samples/Makefile samples/date/Makefile samples/cal/Makefile \
|
||||
samples/XMLConverter/Makefile \
|
||||
common/unicode/platform.h"}
|
||||
EOF
|
||||
cat >> $CONFIG_STATUS <<\EOF
|
||||
|
|
|
@ -4,7 +4,7 @@ dnl Copyright (c) 1999-2000, International Business Machines Corporation and
|
|||
dnl others. All Rights Reserved.
|
||||
dnl Stephen F. Booth, heavily modified by Yves and others
|
||||
|
||||
dnl $Id: configure.in,v 1.97 2000/12/01 18:50:37 srl Exp $
|
||||
dnl $Id: configure.in,v 1.98 2000/12/04 23:30:03 srl Exp $
|
||||
|
||||
dnl Process this file with autoconf to produce a configure script
|
||||
AC_INIT(common/unicode/utypes.h)
|
||||
|
@ -741,7 +741,6 @@ AC_OUTPUT([README icudefs.mk \
|
|||
test/Makefile test/testdata/Makefile test/intltest/Makefile test/cintltst/Makefile \
|
||||
test/ieeetest/Makefile \
|
||||
samples/Makefile samples/date/Makefile samples/cal/Makefile \
|
||||
samples/XMLConverter/Makefile \
|
||||
common/unicode/platform.h])
|
||||
|
||||
if test $ICU_USE_THREADS = 0; then
|
||||
|
|
|
@ -1,86 +0,0 @@
|
|||
## Makefile.in for ICU - samples/XMLConverter
|
||||
## Copyright (c) 1999-2000, International Business Machines Corporation and
|
||||
## others. All Rights Reserved.
|
||||
|
||||
## Install directory information
|
||||
srcdir = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
|
||||
top_builddir = ../..
|
||||
|
||||
include $(top_builddir)/icudefs.mk
|
||||
|
||||
## Platform-specific setup
|
||||
include @platform_make_fragment@
|
||||
|
||||
## Build directory information
|
||||
subdir = samples/XMLConverter
|
||||
## Extra files to remove for 'make clean'
|
||||
CLEANFILES = *~ $(DEPS)
|
||||
|
||||
## Target information
|
||||
TARGET = XMLConverter
|
||||
|
||||
DEFS = @DEFS@
|
||||
CPPFLAGS = @CPPFLAGS@ -I$(top_builddir)/common -I$(top_srcdir)/common
|
||||
CFLAGS = @CFLAGS@
|
||||
CXXFLAGS = @CXXFLAGS@
|
||||
ENABLE_RPATH = @ENABLE_RPATH@
|
||||
ifeq ($(ENABLE_RPATH),YES)
|
||||
RPATHLDFLAGS = $(LD_RPATH)$(LD_RPATH_PRE)$(libdir)
|
||||
endif
|
||||
LDFLAGS = @LDFLAGS@ $(RPATHLDFLAGS)
|
||||
INVOKE = $(LDLIBRARYPATH_ENVVAR)=$(top_builddir)/common:$$$(LDLIBRARYPATH_ENVVAR)
|
||||
LIBS = $(LIBICUUC) @LIBS@ @LIB_M@
|
||||
|
||||
OBJECTS = XMLConverter.o
|
||||
|
||||
DEPS = $(OBJECTS:.o=.d)
|
||||
|
||||
##Headers files to install
|
||||
HEADERS = XMLConverter.hpp
|
||||
|
||||
## List of phony targets
|
||||
.PHONY : all all-local install install-local clean clean-local \
|
||||
distclean distclean-local dist dist-local check check-local
|
||||
|
||||
## Clear suffix list
|
||||
.SUFFIXES :
|
||||
|
||||
## List of standard targets
|
||||
all: all-local
|
||||
install: install-local
|
||||
clean: clean-local
|
||||
distclean : distclean-local
|
||||
dist: dist-local
|
||||
check: all check-local
|
||||
|
||||
all-local: $(TARGET)
|
||||
|
||||
install-local: all-local
|
||||
|
||||
dist-local:
|
||||
|
||||
clean-local:
|
||||
test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
|
||||
$(RMV) $(OBJECTS) $(TARGET)
|
||||
|
||||
distclean-local: clean-local
|
||||
$(RMV) Makefile
|
||||
|
||||
check-local:
|
||||
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
cd $(top_builddir) \
|
||||
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
||||
|
||||
$(TARGET) : $(OBJECTS)
|
||||
$(LINK.cc) -o $@ $^ $(LIBS)
|
||||
|
||||
ifeq (,$(MAKECMDGOALS))
|
||||
-include $(DEPS)
|
||||
else
|
||||
ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
|
||||
-include $(DEPS)
|
||||
endif
|
||||
endif
|
|
@ -1,37 +0,0 @@
|
|||
Friday, Aug 13, 1999 ICU XMLConverter Sample
|
||||
--------------------
|
||||
|
||||
XMLConverter is an example which demonstrates codepage converersion
|
||||
between XML files. (For more information on XML, see the IBM XML4C
|
||||
project which is available at:
|
||||
http://www.alphaWorks.ibm.com/tech/xml4c
|
||||
The XML4C++ uses ICU internally for conversion.)
|
||||
|
||||
|
||||
XML Files contain their encoding at the top, as in the following
|
||||
example:
|
||||
|
||||
<?xml version="1.0" encoding="ascii" ?>
|
||||
|
||||
To use the XMLConverter, try the following example:
|
||||
|
||||
XMLConverter -v -e utf-16be samples/animal.xml samples/animal_utf16.xml
|
||||
|
||||
This will create a file named animal_utf16.xml which is in the utf16
|
||||
big-endian codepage.
|
||||
|
||||
Currently the following encodings are supported:
|
||||
|
||||
ascii, utf8, utf-16be, utf-16le, ebcdic-cp-us
|
||||
|
||||
---
|
||||
**********************************************************************
|
||||
* Copyright (C) 1998-2000, International Business Machines Corporation
|
||||
* and others. All Rights Reserved.
|
||||
**********************************************************************
|
||||
IBM Center for Java Technology Silicon Valley,
|
||||
10275 N De Anza Blvd., Cupertino, CA 95014
|
||||
All rights reserved.
|
||||
Internet email to icu4c@us.ibm.com
|
||||
|
||||
|
File diff suppressed because it is too large
Load diff
|
@ -1,103 +0,0 @@
|
|||
# Microsoft Developer Studio Project File - Name="XMLConverter" - Package Owner=<4>
|
||||
# Microsoft Developer Studio Generated Build File, Format Version 6.00
|
||||
# ** DO NOT EDIT **
|
||||
|
||||
# TARGTYPE "Win32 (x86) Console Application" 0x0103
|
||||
|
||||
CFG=XMLConverter - Win32 Debug
|
||||
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
|
||||
!MESSAGE use the Export Makefile command and run
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "XMLConverter.mak".
|
||||
!MESSAGE
|
||||
!MESSAGE You can specify a configuration when running NMAKE
|
||||
!MESSAGE by defining the macro CFG on the command line. For example:
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "XMLConverter.mak" CFG="XMLConverter - Win32 Debug"
|
||||
!MESSAGE
|
||||
!MESSAGE Possible choices for configuration are:
|
||||
!MESSAGE
|
||||
!MESSAGE "XMLConverter - Win32 Release" (based on "Win32 (x86) Console Application")
|
||||
!MESSAGE "XMLConverter - Win32 Debug" (based on "Win32 (x86) Console Application")
|
||||
!MESSAGE
|
||||
|
||||
# Begin Project
|
||||
# PROP AllowPerConfigDependencies 0
|
||||
# PROP Scc_ProjName ""
|
||||
# PROP Scc_LocalPath ""
|
||||
CPP=cl.exe
|
||||
RSC=rc.exe
|
||||
|
||||
!IF "$(CFG)" == "XMLConverter - Win32 Release"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 0
|
||||
# PROP BASE Output_Dir "Release"
|
||||
# PROP BASE Intermediate_Dir "Release"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 0
|
||||
# PROP Output_Dir "\icu\source\samples\XMLConverter\Release"
|
||||
# PROP Intermediate_Dir "\icu\source\samples\XMLConverter\Release\obj"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
|
||||
# ADD CPP /nologo /W3 /GX /O2 /I "..\..\..\include" /I "..\..\common" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
|
||||
# ADD BASE RSC /l 0x409 /d "NDEBUG"
|
||||
# ADD RSC /l 0x409 /d "NDEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
|
||||
# ADD LINK32 ..\..\..\lib\icuuc17.lib /nologo /subsystem:console /machine:I386
|
||||
|
||||
!ELSEIF "$(CFG)" == "XMLConverter - Win32 Debug"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 1
|
||||
# PROP BASE Output_Dir "Debug"
|
||||
# PROP BASE Intermediate_Dir "Debug"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 1
|
||||
# PROP Output_Dir "Debug"
|
||||
# PROP Intermediate_Dir "Debug"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
|
||||
# ADD CPP /nologo /G6 /MDd /W3 /Gm /GX /ZI /Od /I "..\..\..\include" /I "..\..\common" /D "_CONSOLE" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "DEVENV_VCPP" /D "PLATFORM_WIN32" /FD /GZ /c
|
||||
# SUBTRACT CPP /YX
|
||||
# ADD BASE RSC /l 0x409 /d "_DEBUG"
|
||||
# ADD RSC /l 0x409 /d "_DEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
|
||||
# ADD LINK32 ..\..\..\lib\icuuc17d.lib /nologo /version:1.0 /subsystem:console /debug /machine:I386 /pdbtype:sept
|
||||
|
||||
!ENDIF
|
||||
|
||||
# Begin Target
|
||||
|
||||
# Name "XMLConverter - Win32 Release"
|
||||
# Name "XMLConverter - Win32 Debug"
|
||||
# Begin Group "Source Files"
|
||||
|
||||
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\XMLConverter.cpp
|
||||
# End Source File
|
||||
# End Group
|
||||
# Begin Group "Header Files"
|
||||
|
||||
# PROP Default_Filter "h;hpp;hxx;hm;inl"
|
||||
# End Group
|
||||
# Begin Group "Resource Files"
|
||||
|
||||
# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
|
||||
# End Group
|
||||
# End Target
|
||||
# End Project
|
|
@ -1,29 +0,0 @@
|
|||
Microsoft Developer Studio Workspace File, Format Version 6.00
|
||||
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
|
||||
|
||||
###############################################################################
|
||||
|
||||
Project: "XMLConverter"=.\XMLConverter.dsp - Package Owner=<4>
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<4>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
Global:
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<3>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
/**********************************************************************
|
||||
* Copyright (C) 1998-2000, International Business Machines Corporation
|
||||
* and others. All Rights Reserved.
|
||||
**********************************************************************/
|
||||
// XMLConverter.hpp
|
||||
|
||||
class XMLConverter
|
||||
{
|
||||
public :
|
||||
XMLConverter(FILE* inputFile, const char* encodingType, FILE* outputFile);
|
||||
~XMLConverter();
|
||||
int convert();
|
||||
private:
|
||||
FILE* fInputFile;
|
||||
FILE* fOutputFile;
|
||||
const char* fEncodingType;
|
||||
}
|
Loading…
Add table
Reference in a new issue