added: namespace PT, global Makefile file
git-svn-id: svn://ttmath.org/publicrep/pikotools/trunk@374 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
27
utf8/Makefile
Executable file
27
utf8/Makefile
Executable file
@@ -0,0 +1,27 @@
|
||||
include Makefile.o.dep
|
||||
|
||||
libname=utf8.a
|
||||
|
||||
all: $(libname)
|
||||
|
||||
$(libname): $(o)
|
||||
ar rcs $(libname) $(o)
|
||||
|
||||
|
||||
%.o: %.cpp
|
||||
$(CXX) -c $(CXXFLAGS) $<
|
||||
|
||||
|
||||
|
||||
depend:
|
||||
makedepend -Y. -I.. -f- *.cpp > Makefile.dep
|
||||
echo -n "o = " > Makefile.o.dep
|
||||
ls -1 *.cpp | xargs -I foo echo -n foo " " | sed -E "s/([^\.]*)\.cpp[ ]/\1\.o/g" >> Makefile.o.dep
|
||||
|
||||
|
||||
clean:
|
||||
rm -f *.o
|
||||
rm -f $(libname)
|
||||
|
||||
|
||||
include Makefile.dep
|
3
utf8/Makefile.dep
Executable file
3
utf8/Makefile.dep
Executable file
@@ -0,0 +1,3 @@
|
||||
# DO NOT DELETE
|
||||
|
||||
utf8.o: utf8.h
|
1
utf8/Makefile.o.dep
Executable file
1
utf8/Makefile.o.dep
Executable file
@@ -0,0 +1 @@
|
||||
o = utf8.o
|
@@ -1,11 +1,11 @@
|
||||
/*
|
||||
* This file is a part of EZC -- Easy templating in C++
|
||||
* This file is a part of PikoTools
|
||||
* and is distributed under the (new) BSD licence.
|
||||
* Author: Tomasz Sowa <t.sowa@ttmath.org>
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2010-2011, Tomasz Sowa
|
||||
* Copyright (c) 2010-2012, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -38,7 +38,7 @@
|
||||
#include "utf8.h"
|
||||
|
||||
|
||||
namespace Ezc
|
||||
namespace PT
|
||||
{
|
||||
|
||||
|
||||
@@ -890,7 +890,7 @@ bool WideToUTF8(const std::wstring & wide_string, std::ostream & utf8, int mode)
|
||||
|
||||
|
||||
|
||||
} // namespace Ezc
|
||||
} // namespace
|
||||
|
||||
|
||||
|
||||
|
12
utf8/utf8.h
12
utf8/utf8.h
@@ -1,11 +1,11 @@
|
||||
/*
|
||||
* This file is a part of EZC -- Easy templating in C++
|
||||
* This file is a part of PikoTools
|
||||
* and is distributed under the (new) BSD licence.
|
||||
* Author: Tomasz Sowa <t.sowa@ttmath.org>
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2010-2011, Tomasz Sowa
|
||||
* Copyright (c) 2010-2012, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -35,14 +35,14 @@
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifndef headerfile_ezc_utf8
|
||||
#define headerfile_ezc_utf8
|
||||
#ifndef headerfile_picotools_utf8_utf8
|
||||
#define headerfile_picotools_utf8_utf8
|
||||
|
||||
#include <fstream>
|
||||
#include <string>
|
||||
|
||||
|
||||
namespace Ezc
|
||||
namespace PT
|
||||
{
|
||||
|
||||
/*!
|
||||
@@ -104,7 +104,7 @@ bool WideToUTF8(const std::wstring & wide_string, std::ostream & u
|
||||
|
||||
|
||||
|
||||
} // namespace Ezc
|
||||
} // namespace
|
||||
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user