[sword-cvs] icu-sword/source/samples/ugrep Makefile,NONE,1.1 readme.txt,NONE,1.1 ugrep.cpp,NONE,1.1 ugrep.dsp,NONE,1.1 ugrep.dsw,NONE,1.1 ugrep.sln,NONE,1.1 ugrep.vcproj,NONE,1.1
sword@www.crosswire.org
sword@www.crosswire.org
Tue, 9 Sep 2003 19:42:34 -0700
- Previous message: [sword-cvs] icu-sword/source/samples/uciter8 Makefile,NONE,1.1 readme.txt,NONE,1.1 uciter8.c,NONE,1.1 uciter8.dsp,NONE,1.1 uciter8.dsw,NONE,1.1 uciter8.sln,NONE,1.1 uciter8.vcproj,NONE,1.1 uit_len8.c,NONE,1.1 uit_len8.h,NONE,1.1
- Next message: [sword-cvs] icu-sword/source/samples/xml2txt ChildName.cpp,NONE,1.1 ChildName.h,NONE,1.1 DOMPrintFormatTarget.cpp,NONE,1.1 DOMPrintFormatTarget.h,NONE,1.1 DOMTreeErrorReporter.cpp,NONE,1.1 DOMTreeErrorReporter.hpp,NONE,1.1 readme.txt,NONE,1.1 xml2res.pl,NONE,1.1 xml2txt.cpp,NONE,1.1 xml2txt.dsp,NONE,1.1 xml2txt.h,NONE,1.1 xml2txt.plg,NONE,1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /usr/local/cvsroot/icu-sword/source/samples/ugrep
In directory www:/tmp/cvs-serv19862/source/samples/ugrep
Added Files:
Makefile readme.txt ugrep.cpp ugrep.dsp ugrep.dsw ugrep.sln
ugrep.vcproj
Log Message:
ICU 2.6 commit
--- NEW FILE: Makefile ---
# Copyright (c) 2000-2002 IBM, Inc. and others
# sample code makefile
# Usage:
# - configure, build, install ICU (make install)
# - make sure "icu-config" (in the ICU installed bin directory) is on
# the path
# - do 'make' in this directory
#### definitions
# Name of your target
TARGET=ugrep
# All object files (C or C++)
OBJECTS=ugrep.o
#### rules
# Load in standard makefile definitions
include ../defs.mk
# the actual rules (this is a simple sample)
include ../rules.mk
--- NEW FILE: readme.txt ---
Copyright (c) 2002, International Business Machines Corporation and others. All Rights Reserved.
ugrep: a sample program demonstrating the use of ICU regular expression API.
usage: ugrep [options] pattern [file ...]
--help Output a brief help message
-n, --line-number Prefix each line of output with the line number within its input file.
-V, --version Output the program version number
The program searches for the specified regular expression in each of the
specified files, and outputs each matching line.
Input files are in the system default (locale dependent) encoding, unless they
begin with a BOM, in which case they are assumed to be in the UTF encoding
specified by the BOM. Program output is always in the system's default
8 bit code page.
Files:
./ugrep.c source code for the sample
./ugrep.dsw Windows MSVC workspace. Double-click this to get started.
./ugrep.dsp Windows MSVC project file.
./Makefile Makefile for Unixes. Needs gmake.
To Build ugrep on Windows
1. Install and build ICU
2. In MSVC, open the workspace file icu\samples\ugrep\ugrep.dsw
3. Choose a Debug or Release build.
4. Build.
To Run on Windows
1. Start a command shell window
2. Add ICU's bin directory to the path, e.g.
set PATH=c:\icu\bin;%PATH%
(Use the path to where ever ICU is on your system.)
3. cd into the ugrep directory, e.g.
cd c:\icu\source\samples\ugrep\debug
4. Run it
ugrep ...
To Build on Unixes
1. Build ICU. Specify an ICU install directory when running configure,
using the --prefix option. The steps to build ICU will look something
like this:
cd <icu directory>/source
runConfigureICU <platform-name> --prefix <icu install directory> [other options]
gmake all
2. Install ICU,
gmake install
3. Build the sample
Put the install directory containing icu-config on the $PATH.
This will generally be <icu install directory>/bin
cd <icu directory>/source/samples/ugrep
gmake
To Run on Unixes
cd <icu directory>/source/samples/ugrep
export LD_LIBRARY_PATH=<icu install directory>/lib:.:$LD_LIBRARY_PATH
ugrep ...
Note: The name of the LD_LIBRARY_PATH variable is different on some systems.
If in doubt, run the sample using "gmake check", and note the name of
the variable that is used there. LD_LIBRARY_PATH is the correct name
for Linux and Solaris.
--- NEW FILE: ugrep.cpp ---
/**************************************************************************
*
* Copyright (C) 2002, International Business Machines
* Corporation and others. All Rights Reserved.
*
***************************************************************************
*/
//
// ugrep - an ICU sample program illustrating the use of ICU Regular Expressions.
//
// The use of the ICU Regex API all occurs within the main()
// function. The rest of the code deals with with opening files,
// encoding conversions, printing results, etc.
//
// This is not a full-featured grep program. The command line options
// have been kept to a minimum to avoid complicating the sample code.
//
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "unicode/utypes.h"
#include "unicode/ustring.h"
#include "unicode/regex.h"
#include "unicode/ucnv.h"
#include "unicode/uclean.h"
//
// The following variables contain paramters that may be set from the command line.
//
const char *pattern = NULL; // The regular expression
int firstFileNum; // argv index of the first file name
UBool displayFileName = FALSE;
UBool displayLineNum = FALSE;
//
// Info regarding the file currently being processed
//
const char *fileName;
int fileLen; // Length, in UTF-16 Code Units.
UChar *ucharBuf = 0; // Buffer, holds converted file. (Simple minded program, always reads
// the whole file at once.
char *charBuf = 0; // Buffer, for original, unconverted file data.
//
// Info regarding the line currently being processed
//
int lineStart; // Index of first char of the current line in the file buffer
int lineEnd; // Index of char following the new line sequence for the current line
int lineNum;
//
// Converter, used on output to convert Unicode data back to char *
// so that it will display in non-Unicode terminal windows.
//
UConverter *outConverter = 0;
//
// Function forward declarations
//
void processOptions(int argc, const char **argv);
void nextLine(int start);
void printMatch();
void printUsage();
void readFile(const char *name);
//------------------------------------------------------------------------------------------
//
// main for ugrep
//
// Structurally, all use of the ICU Regular Expression API is in main(),
// and all of the supporting stuff necessary to make a running program, but
// not directly related to regular expressions, is factored out into these other
// functions.
//
//------------------------------------------------------------------------------------------
int main(int argc, const char** argv) {
UBool matchFound = FALSE;
//
// Process the commmand line options.
//
processOptions(argc, argv);
//
// Create a RegexPattern object from the user supplied pattern string.
//
UErrorCode status = U_ZERO_ERROR; // All ICU operations report success or failure
// in a status variable.
UParseError parseErr; // In the event of a syntax error in the regex pattern,
// this struct will contain the position of the
// error.
RegexPattern *rePat = RegexPattern::compile(pattern, parseErr, status);
// Note that C++ is doing an automatic conversion
// of the (char *) pattern to a temporary
// UnicodeString object.
if (U_FAILURE(status)) {
fprintf(stderr, "ugrep: error in pattern: \"%s\" at position %d\n",
u_errorName(status), parseErr.offset);
exit(-1);
}
//
// Create a RegexMatcher from the newly created pattern.
//
UnicodeString empty;
RegexMatcher *matcher = rePat->matcher(empty, status);
if (U_FAILURE(status)) {
fprintf(stderr, "ugrep: error in creating RegexMatcher: \"%s\"\n",
u_errorName(status));
exit(-1);
}
//
// Loop, processing each of the input files.
//
for (int fileNum=firstFileNum; fileNum < argc; fileNum++) {
readFile(argv[fileNum]);
//
// Loop through the lines of a file, trying to match the regex pattern on each.
//
for (nextLine(0); lineStart<fileLen; nextLine(lineEnd)) {
UnicodeString s(FALSE, ucharBuf+lineStart, lineEnd-lineStart);
matcher->reset(s);
if (matcher->find()) {
matchFound = TRUE;
printMatch();
}
}
}
//
// Clean up
//
delete matcher;
delete rePat;
free(ucharBuf);
free(charBuf);
ucnv_close(outConverter);
u_cleanup(); // shut down ICU, release any cached data it owns.
return matchFound? 0: 1;
}
//------------------------------------------------------------------------------------------
//
// doOptions Run through the command line options, and set
// the global variables accordingly.
//
// exit without returning if an error occured and
// ugrep should not proceed further.
//
//------------------------------------------------------------------------------------------
void processOptions(int argc, const char **argv) {
int optInd;
UBool doUsage = FALSE;
UBool doVersion = FALSE;
const char *arg;
for(optInd = 1; optInd < argc; ++optInd) {
arg = argv[optInd];
/* version info */
if(strcmp(arg, "-V") == 0 || strcmp(arg, "--version") == 0) {
doVersion = TRUE;
}
/* usage info */
else if(strcmp(arg, "--help") == 0) {
doUsage = TRUE;
}
else if(strcmp(arg, "-n") == 0 || strcmp(arg, "--line-number") == 0) {
displayLineNum = TRUE;
}
/* POSIX.1 says all arguments after -- are not options */
else if(strcmp(arg, "--") == 0) {
/* skip the -- */
++optInd;
break;
}
/* unrecognized option */
else if(strncmp(arg, "-", strlen("-")) == 0) {
printf("ugrep: invalid option -- %s\n", arg+1);
doUsage = TRUE;
}
/* done with options */
else {
break;
}
}
if (doUsage) {
printUsage();
exit(0);
}
if (doVersion) {
printf("ugrep version 0.01\n");
if (optInd == argc) {
exit(0);
}
}
int remainingArgs = argc-optInd; // pattern file ...
if (remainingArgs < 2) {
fprintf(stderr, "ugrep: files or pattern are missing.\n");
printUsage();
exit(1);
}
if (remainingArgs > 2) {
// More than one file to be processed. Display file names with match output.
displayFileName = TRUE;
}
pattern = argv[optInd];
firstFileNum = optInd+1;
}
//------------------------------------------------------------------------------------------
//
// printUsage
//
//------------------------------------------------------------------------------------------
void printUsage() {
printf("ugrep [options] pattern file...\n"
" -V or --version display version information\n"
" --help display this help and exit\n"
" -- stop further option processing\n"
"-n, --line-number Prefix each line of output with the line number within its input file.\n"
);
exit(0);
}
//------------------------------------------------------------------------------------------
//
// readFile Read a file into memory, and convert it to Unicode.
//
// Since this is just a demo program, take the simple minded approach
// of always reading the whole file at once. No intelligent buffering
// is done.
//
//------------------------------------------------------------------------------------------
void readFile(const char *name) {
//
// Initialize global file variables
//
fileName = name;
fileLen = 0; // zero length prevents processing in case of errors.
//
// Open the file and determine its size.
//
FILE *file = fopen(name, "rb");
if (file == 0 ) {
fprintf(stderr, "ugrep: Could not open file \"%s\"\n", fileName);
return;
}
fseek(file, 0, SEEK_END);
int rawFileLen = ftell(file);
fseek(file, 0, SEEK_SET);
//
// Read in the file
//
charBuf = (char *)realloc(charBuf, rawFileLen+1); // Need error checking...
int t = fread(charBuf, 1, rawFileLen, file);
if (t != rawFileLen) {
fprintf(stderr, "Error reading file \"%s\"\n", fileName);
return;
}
charBuf[rawFileLen]=0;
fclose(file);
//
// Look for a Unicode Signature (BOM) in the data
//
int32_t signatureLength;
const char * charDataStart = charBuf;
UErrorCode status = U_ZERO_ERROR;
const char* encoding = ucnv_detectUnicodeSignature(
charDataStart, rawFileLen, &signatureLength, &status);
if (U_FAILURE(status)) {
fprintf(stderr, "ugrep: ICU Error \"%s\" from ucnv_detectUnicodeSignature()\n",
u_errorName(status));
return;
}
if(encoding!=NULL ){
charDataStart += signatureLength;
rawFileLen -= signatureLength;
}
//
// Open a converter to take the file to UTF-16
//
UConverter* conv;
conv = ucnv_open(encoding, &status);
if (U_FAILURE(status)) {
fprintf(stderr, "ugrep: ICU Error \"%s\" from ucnv_open()\n", u_errorName(status));
return;
}
//
// Convert the file data to UChar.
// Preflight first to determine required buffer size.
//
uint32_t destCap = ucnv_toUChars(conv,
NULL, // dest,
0, // destCapacity,
charDataStart,
rawFileLen,
&status);
if (status != U_BUFFER_OVERFLOW_ERROR) {
fprintf(stderr, "ugrep: ucnv_toUChars: ICU Error \"%s\"\n", u_errorName(status));
return;
};
status = U_ZERO_ERROR;
ucharBuf = (UChar *)realloc(ucharBuf, (destCap+1) * sizeof(UChar));
ucnv_toUChars(conv,
ucharBuf, // dest,
destCap+1,
charDataStart,
rawFileLen,
&status);
if (U_FAILURE(status)) {
fprintf(stderr, "ugrep: ucnv_toUChars: ICU Error \"%s\"\n", u_errorName(status));
return;
};
ucnv_close(conv);
//
// Successful conversion. Set the global size variables so that
// the rest of the processing will proceed for this file.
//
fileLen = destCap;
}
//------------------------------------------------------------------------------------------
//
// nextLine Advance the line index variables, starting at the
// specified position in the input file buffer, by
// scanning forwrd until the next end-of-line.
//
// Need to take into account all of the possible Unicode
// line ending sequences.
//
//------------------------------------------------------------------------------------------
void nextLine(int startPos) {
if (startPos == 0) {
lineNum = 0;
} else {
lineNum++;
}
lineStart = lineEnd = startPos;
for (;;) {
if (lineEnd >= fileLen) {
return;
}
UChar c = ucharBuf[lineEnd];
lineEnd++;
if (c == 0x0a || // Line Feed
c == 0x0c || // Form Feed
c == 0x0d || // Carriage Return
c == 0x85 || // Next Line
c == 0x2028 || // Line Separator
c == 0x2029) // Paragraph separator
{
break;
}
}
// Check for CR/LF sequence, and advance over the LF if we're in the middle of one.
if (lineEnd < fileLen &&
ucharBuf[lineEnd-1] == 0x0d &&
ucharBuf[lineEnd] == 0x0a)
{
lineEnd++;
}
}
//------------------------------------------------------------------------------------------
//
// printMatch Called when a matching line has been located.
// Print out the line from the file with the match, after
// converting it back to the default code page.
//
//------------------------------------------------------------------------------------------
void printMatch() {
char buf[2000];
UErrorCode status = U_ZERO_ERROR;
// If we haven't already created a converter for output, do it now.
if (outConverter == 0) {
outConverter = ucnv_open(NULL, &status);
if (U_FAILURE(status)) {
fprintf(stderr, "ugrep: Error opening default converter: \"%s\"\n",
u_errorName(status));
exit(-1);
}
};
// Convert the line to be printed back to the default 8 bit code page.
// If the line is too long for our buffer, just truncate it.
ucnv_fromUChars(outConverter,
buf, // destination buffer for conversion
sizeof(buf), // capacity of destination buffer
&ucharBuf[lineStart], // Input to conversion
lineEnd-lineStart, // number of UChars to convert
&status);
buf[sizeof(buf)-1] = 0; // Add null for use in case of too long lines.
// The converter null-terminates its output unless
// the buffer completely fills.
if (displayFileName) {
printf("%s:", fileName);
}
if (displayLineNum) {
printf("%d:", lineNum);
}
printf("%s", buf);
}
--- NEW FILE: ugrep.dsp ---
# Microsoft Developer Studio Project File - Name="ugrep" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Console Application" 0x0103
CFG=ugrep - 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 "ugrep.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 "ugrep.mak" CFG="ugrep - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "ugrep - Win32 Release" (based on "Win32 (x86) Console Application")
!MESSAGE "ugrep - 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)" == "ugrep - 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 "Release"
# PROP Intermediate_Dir "Release"
# 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 /G6 /MD /W3 /GX /O2 /Ob2 /I "..\..\..\include" /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 kernel32.lib user32.lib icuuc.lib icuin.lib /nologo /subsystem:console /machine:I386 /libpath:"../../../lib" /fixed:no
# SUBTRACT LINK32 /pdb:none /debug
!ELSEIF "$(CFG)" == "ugrep - 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" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
# 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 kernel32.lib user32.lib icuucd.lib icuind.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"../../../lib"
!ENDIF
# Begin Target
# Name "ugrep - Win32 Release"
# Name "ugrep - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
# Begin Source File
SOURCE=.\ugrep.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
--- NEW FILE: ugrep.dsw ---
Microsoft Developer Studio Workspace File, Format Version 6.00
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
###############################################################################
Project: "ugrep"=.\ugrep.dsp - Package Owner=<4>
Package=<5>
{{{
}}}
Package=<4>
{{{
}}}
###############################################################################
Global:
Package=<5>
{{{
}}}
Package=<3>
{{{
}}}
###############################################################################
--- NEW FILE: ugrep.sln ---
Microsoft Visual Studio Solution File, Format Version 7.00
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ugrep", "ugrep.vcproj", "{E5742DB5-B6E7-4895-825A-CA03FC0A59D0}"
EndProject
Global
GlobalSection(SolutionConfiguration) = preSolution
ConfigName.0 = Debug
ConfigName.1 = Release
EndGlobalSection
GlobalSection(ProjectDependencies) = postSolution
EndGlobalSection
GlobalSection(ProjectConfiguration) = postSolution
{E5742DB5-B6E7-4895-825A-CA03FC0A59D0}.Debug.ActiveCfg = Debug|Win32
{E5742DB5-B6E7-4895-825A-CA03FC0A59D0}.Debug.Build.0 = Debug|Win32
{E5742DB5-B6E7-4895-825A-CA03FC0A59D0}.Release.ActiveCfg = Release|Win32
{E5742DB5-B6E7-4895-825A-CA03FC0A59D0}.Release.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
EndGlobalSection
GlobalSection(ExtensibilityAddIns) = postSolution
EndGlobalSection
EndGlobal
--- NEW FILE: ugrep.vcproj ---
<?xml version="1.0" encoding = "Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="7.00"
Name="ugrep"
SccProjectName=""
SccLocalPath="">
<Platforms>
<Platform
Name="Win32"/>
</Platforms>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory=".\Debug"
IntermediateDirectory=".\Debug"
ConfigurationType="1"
UseOfMFC="0"
ATLMinimizesCRunTimeLibraryUsage="FALSE"
CharacterSet="2">
<Tool
Name="VCCLCompilerTool"
Optimization="0"
OptimizeForProcessor="2"
AdditionalIncludeDirectories="..\..\..\include"
PreprocessorDefinitions="WIN32,_DEBUG,_CONSOLE"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
UsePrecompiledHeader="2"
PrecompiledHeaderFile=".\Debug/ugrep.pch"
AssemblerListingLocation=".\Debug/"
ObjectFile=".\Debug/"
ProgramDataBaseFileName=".\Debug/"
WarningLevel="3"
SuppressStartupBanner="TRUE"
DebugInformationFormat="4"
CompileAs="0"/>
<Tool
Name="VCCustomBuildTool"/>
<Tool
Name="VCLinkerTool"
AdditionalOptions="/MACHINE:I386"
AdditionalDependencies="icuucd.lib icuind.lib"
OutputFile=".\Debug/ugrep.exe"
LinkIncremental="2"
SuppressStartupBanner="TRUE"
AdditionalLibraryDirectories="../../../lib"
GenerateDebugInformation="TRUE"
ProgramDatabaseFile=".\Debug/ugrep.pdb"
SubSystem="1"/>
<Tool
Name="VCMIDLTool"
TypeLibraryName=".\Debug/ugrep.tlb"/>
<Tool
Name="VCPostBuildEventTool"/>
<Tool
Name="VCPreBuildEventTool"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
Name="VCResourceCompilerTool"
PreprocessorDefinitions="_DEBUG"
Culture="1033"/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
<Tool
Name="VCWebDeploymentTool"/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory=".\Release"
IntermediateDirectory=".\Release"
ConfigurationType="1"
UseOfMFC="0"
ATLMinimizesCRunTimeLibraryUsage="FALSE"
CharacterSet="2">
<Tool
Name="VCCLCompilerTool"
InlineFunctionExpansion="2"
OptimizeForProcessor="2"
AdditionalIncludeDirectories="..\..\..\include"
PreprocessorDefinitions="WIN32,NDEBUG,_CONSOLE"
StringPooling="TRUE"
RuntimeLibrary="2"
EnableFunctionLevelLinking="TRUE"
UsePrecompiledHeader="2"
PrecompiledHeaderFile=".\Release/ugrep.pch"
AssemblerListingLocation=".\Release/"
ObjectFile=".\Release/"
ProgramDataBaseFileName=".\Release/"
WarningLevel="3"
SuppressStartupBanner="TRUE"
CompileAs="0"/>
<Tool
Name="VCCustomBuildTool"/>
<Tool
Name="VCLinkerTool"
AdditionalOptions="/MACHINE:I386 /FIXED:NO"
AdditionalDependencies="icuuc.lib icuin.lib"
OutputFile=".\Release/ugrep.exe"
LinkIncremental="1"
SuppressStartupBanner="TRUE"
AdditionalLibraryDirectories="../../../lib"
ProgramDatabaseFile=".\Release/ugrep.pdb"
SubSystem="1"/>
<Tool
Name="VCMIDLTool"
TypeLibraryName=".\Release/ugrep.tlb"/>
<Tool
Name="VCPostBuildEventTool"/>
<Tool
Name="VCPreBuildEventTool"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
Name="VCResourceCompilerTool"
PreprocessorDefinitions="NDEBUG"
Culture="1033"/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
<Tool
Name="VCWebDeploymentTool"/>
</Configuration>
</Configurations>
<Files>
<Filter
Name="Source Files"
Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat">
<File
RelativePath=".\ugrep.cpp">
</File>
</Filter>
<Filter
Name="Header Files"
Filter="h;hpp;hxx;hm;inl">
</Filter>
<Filter
Name="Resource Files"
Filter="ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe">
</Filter>
</Files>
<Globals>
</Globals>
</VisualStudioProject>
- Previous message: [sword-cvs] icu-sword/source/samples/uciter8 Makefile,NONE,1.1 readme.txt,NONE,1.1 uciter8.c,NONE,1.1 uciter8.dsp,NONE,1.1 uciter8.dsw,NONE,1.1 uciter8.sln,NONE,1.1 uciter8.vcproj,NONE,1.1 uit_len8.c,NONE,1.1 uit_len8.h,NONE,1.1
- Next message: [sword-cvs] icu-sword/source/samples/xml2txt ChildName.cpp,NONE,1.1 ChildName.h,NONE,1.1 DOMPrintFormatTarget.cpp,NONE,1.1 DOMPrintFormatTarget.h,NONE,1.1 DOMTreeErrorReporter.cpp,NONE,1.1 DOMTreeErrorReporter.hpp,NONE,1.1 readme.txt,NONE,1.1 xml2res.pl,NONE,1.1 xml2txt.cpp,NONE,1.1 xml2txt.dsp,NONE,1.1 xml2txt.h,NONE,1.1 xml2txt.plg,NONE,1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]