Warning : file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 88
Warning : Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 215
Warning : Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 216
Warning : Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 217
Warning : Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 218
Warning : Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 219
Warning : Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 220
PK ! ԿV Makefilenu [ ## Makefile.in for ICU samples
## Copyright (C) 2016 and later: Unicode, Inc. and others.
## License & terms of use: http://www.unicode.org/copyright.html#License
##
## Copyright (c) 1999-2011, International Business Machines Corporation and
## others. All Rights Reserved.
## Install directory information
srcdir = .
top_srcdir = ..
top_builddir = ..
include $(top_builddir)/icudefs.mk
## Build directory information
subdir = samples
## Platform-specific setup
include $(top_srcdir)/config/mh-linux
## Files to remove for 'make clean'
CLEANFILES = *~
SUBDIRS = date cal
ALLSUBDIRS = break case csdet datefmt msgfmt numfmt props translit ucnv udata ufortune uresb ustring citer uciter8 ugrep
## List of phony targets
.PHONY : all all-local all-recursive install install-local \
install-recursive clean clean-local clean-recursive distclean \
distclean-local distclean-recursive dist dist-recursive dist-local \
check check-recursive check-local check-exhaustive
## Clear suffix list
.SUFFIXES :
## List of standard targets
all: all-recursive all-local
install: install-recursive install-local
clean: clean-recursive clean-local
distclean : distclean-recursive distclean-local
dist: dist-recursive dist-local
all-samples: all-samples-recursive
clean-samples: clean-samples-recursive
check-samples: check-samples-recursive
# Note (srl 4/15/2002) do NOT recursively check samples for 2.1, look into testing them in the future.
#check: all check-recursive check-local
check: all check-local
check-exhaustive: check
## Recursive targets
all-recursive install-recursive clean-recursive distclean-recursive dist-recursive check-recursive:
@dot_seen=no; \
target=`echo $@ | sed s/-recursive//`; \
list='$(SUBDIRS)'; for subdir in $$list; do \
echo "$(MAKE)[$(MAKELEVEL)]: Making \`$$target' in \`$$subdir'"; \
if test "$$subdir" = "."; then \
dot_seen=yes; \
local_target="$$target-local"; \
else \
local_target="$$target"; \
fi; \
(cd $$subdir && $(MAKE) $$local_target) || exit; \
done; \
if test "$$dot_seen" = "no"; then \
$(MAKE) "$$target-local" || exit; \
fi
all-samples-recursive check-samples-recursive clean-samples-recursive:
@dot_seen=no; \
target=`echo $@ | sed s/-recursive//`; \
subtarget=`echo $@ | sed s/-samples-recursive//`; \
list='$(SUBDIRS) $(ALLSUBDIRS)'; for subdir in $$list; do \
echo "$(MAKE)[$(MAKELEVEL)]: Making \`$$subtarget' in \`$$subdir'"; \
if test "$$subdir" = "."; then \
dot_seen=yes; \
local_target="$$subtarget-local"; \
else \
local_target="$$subtarget"; \
fi; \
(cd $$subdir && $(MAKE) $$local_target) || exit; \
done; \
if test "$$dot_seen" = "no"; then \
$(MAKE) "$$subtarget-local" || exit; \
fi
all-local:
install-local:
dist-local:
clean-local:
test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
check-local:
distclean-local: clean-local
$(RMV) Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
cd $(top_builddir) \
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
PK ! (xGl l citer/Makefilenu [ # Copyright (C) 2016 and later: Unicode, Inc. and others.
# License & terms of use: http://www.unicode.org/copyright.html#License
#
# Copyright (c) 2003-2005 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
# Name of your target
TARGET=citer
# All object files (C or C++)
OBJECTS=citer.o
# Load in standard makefile definitions
include ../defs.mk
LDFLAGS += $(LDFLAGS_USTDIO)
# the actual rules (this is a simple sample)
include ../rules.mk
PK ! Y< citer/citer.cppnu [ /*
*******************************************************************************
*
* © 2016 and later: Unicode, Inc. and others.
* License & terms of use: http://www.unicode.org/copyright.html#License
*
*******************************************************************************
*******************************************************************************
*
* Copyright (C) 2002-2011, International Business Machines
* Corporation and others. All Rights Reserved.
*
*******************************************************************************
*/
#include "unicode/uchriter.h"
#include "unicode/schriter.h"
#include "unicode/ustring.h"
#include
#include
#include
#include
static UFILE *out;
using icu::CharacterIterator;
using icu::StringCharacterIterator;
using icu::UCharCharacterIterator;
using icu::UnicodeString;
void printUnicodeString(const UnicodeString &s)
{
u_fprintf(out, "%S", &s);
}
void printUChar(UChar32 ch)
{
if(ch < 127) {
u_fprintf(out, "%C", (UChar) ch);
} else if (ch == CharacterIterator::DONE) {
u_fprintf(out, "[CharacterIterator::DONE = 0xFFFF]");
} else {
u_fprintf(out, "[%X]", ch);
}
}
class Test
{
public:
void TestUChariter();
void TestStringiter();
};
void Test::TestUChariter() {
const char testChars[] = "Now is the time for all good men to come "
"to the aid of their country.";
UnicodeString testString(testChars,"");
const UChar *testText = testString.getTerminatedBuffer();
UCharCharacterIterator iter(testText, u_strlen(testText));
UCharCharacterIterator* test2 = (UCharCharacterIterator*)iter.clone();
u_fprintf(out, "testText = %s", testChars);
if (iter != *test2 ) {
u_fprintf(out, "clone() or equals() failed: Two clones tested unequal\n");
}
UnicodeString result1, result2;
// getting and comparing the text within the iterators
iter.getText(result1);
test2->getText(result2);
if (result1 != result2) {
u_fprintf(out, "iter.getText() != clone.getText()\n");
}
u_fprintf(out, "\n");
// Demonstrates seeking forward using the iterator.
u_fprintf(out, "Forward = ");
UChar c = iter.first();
printUChar(c); // The first char
int32_t i = 0;
if (iter.startIndex() != 0 || iter.endIndex() != u_strlen(testText)) {
u_fprintf(out, "startIndex() or endIndex() failed\n");
}
// Testing forward iteration...
do {
if (c == CharacterIterator::DONE && i != u_strlen(testText)) {
u_fprintf(out, "Iterator reached end prematurely");
}
else if (c != testText[i]) {
u_fprintf(out, "Character mismatch at position %d\n" + i);
}
if (iter.current() != c) {
u_fprintf(out, "current() isn't working right");
}
if (iter.getIndex() != i) {
u_fprintf(out, "getIndex() isn't working right\n");
}
if (c != CharacterIterator::DONE) {
c = iter.next();
i++;
}
u_fprintf(out, "|");
printUChar(c);
} while (c != CharacterIterator::DONE);
delete test2;
u_fprintf(out, "\n");
}
void Test::TestStringiter() {
const char testChars[] = "Now is the time for all good men to come "
"to the aid of their country.";
UnicodeString testString(testChars,"");
const UChar *testText = testString.getTerminatedBuffer();
StringCharacterIterator iter(testText, u_strlen(testText));
StringCharacterIterator* test2 = (StringCharacterIterator*)iter.clone();
if (iter != *test2 ) {
u_fprintf(out, "clone() or equals() failed: Two clones tested unequal\n");
}
UnicodeString result1, result2;
// getting and comparing the text within the iterators
iter.getText(result1);
test2->getText(result2);
if (result1 != result2) {
u_fprintf(out, "getText() failed\n");
}
u_fprintf(out, "Backwards: ");
UChar c = iter.last();
int32_t i = iter.endIndex();
printUChar(c);
i--; // already printed out the last char
if (iter.startIndex() != 0 || iter.endIndex() != u_strlen(testText)) {
u_fprintf(out, "startIndex() or endIndex() failed\n");
}
// Testing backward iteration over a range...
do {
if (c == CharacterIterator::DONE) {
u_fprintf(out, "Iterator reached end prematurely\n");
}
else if (c != testText[i]) {
u_fprintf(out, "Character mismatch at position %d\n", i);
}
if (iter.current() != c) {
u_fprintf(out, "current() isn't working right\n");
}
if (iter.getIndex() != i) {
u_fprintf(out, "getIndex() isn't working right [%d should be %d]\n", iter.getIndex(), i);
}
if (c != CharacterIterator::DONE) {
c = iter.previous();
i--;
}
u_fprintf(out, "|");
printUChar(c);
} while (c != CharacterIterator::DONE);
u_fprintf(out, "\n");
delete test2;
}
/* Creating and using text boundaries */
int main( void )
{
UErrorCode status = U_ZERO_ERROR;
out = u_finit(stdout, NULL, NULL);
u_fprintf(out, "ICU Iteration Sample Program (C++)\n\n");
Test t;
u_fprintf(out, "\n");
u_fprintf(out, "Test::TestUCharIter()\n");
t.TestUChariter();
u_fprintf(out, "-----\n");
u_fprintf(out, "Test::TestStringchariter()\n");
t.TestStringiter();
u_fprintf(out, "-----\n");
return 0;
}
PK ! 2f)6 citer/citer.vcxproj.filtersnu [
{4FC737F1-C7A5-4376-A066-2A32D752A2FF}
cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx
{93995380-89BD-4b04-88EB-625FBE52EBFB}
h;hpp;hxx;hm;inl;inc;xsd
{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}
rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx
Source Files
PK ! D citer/citer.vcxprojnu [
{247E2681-6C84-408B-B40C-5DB50BC5E18F}
Application
false
MultiByte
<_ProjectFileVersion>10.0.30319.1
x86\Debug\
x86\Debug\
true
.\x64\Debug\
.\x64\Debug\
true
x86\Release\
x86\Release\
false
.\x64\Release\
.\x64\Release\
false
..\..\..\include;%(AdditionalIncludeDirectories)
true
MultiThreadedDebug
Level3
EditAndContinue
icuucd.lib;icuind.lib;icuiod.lib;%(AdditionalDependencies)
.\x86\Debug\citer.exe
..\..\..\lib;%(AdditionalLibraryDirectories)
true
$(OutDir)citer.pdb
Console
false
..\..\..\include;%(AdditionalIncludeDirectories)
true
MultiThreadedDebug
Level3
ProgramDatabase
icuucd.lib;icuind.lib;icuiod.lib;%(AdditionalDependencies)
.\x64\Debug\citer.exe
..\..\..\lib64;%(AdditionalLibraryDirectories)
true
$(OutDir)citer.pdb
Console
false
..\..\..\include;%(AdditionalIncludeDirectories)
MultiThreaded
Level3
ProgramDatabase
icuuc.lib;icuin.lib;icuio.lib;%(AdditionalDependencies)
.\x86\Release\citer.exe
..\..\..\lib;%(AdditionalLibraryDirectories)
true
Console
true
false
..\..\..\include;%(AdditionalIncludeDirectories)
MultiThreaded
Level3
ProgramDatabase
icuuc.lib;icuin.lib;icuio.lib;%(AdditionalDependencies)
.\x64\Release\citer.exe
..\..\..\lib64;%(AdditionalLibraryDirectories)
true
Console
true
false
PK ! (F citer/readme.txtnu [ Copyright (C) 2016 and later: Unicode, Inc. and others.
License & terms of use: http://www.unicode.org/copyright.html#License
Copyright (c) 2003-2010, International Business Machines Corporation and others. All Rights Reserved.
citer: Character Iteration
This sample demonstrates
Demonstrating ICU's CharacterIterator
Files:
citer.cpp Main source file in C++
citer.sln Windows MSVC workspace. Double-click this to get started.
citer.vcproj Windows MSVC project file
To Build citer on Windows
1. Install and build ICU
2. In MSVC, open the workspace file icu\samples\citer\citer.sln
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 citer directory, e.g.
cd c:\icu\source\samples\citer\debug
(note that it may be in a different relative directory than most of the other samples).
4. Run it
citer
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 /source
runConfigureICU --prefix [other options]
gmake all
2. Install ICU,
gmake install
3. Compile
cd /source/samples/citer
gmake ICU_PREFIX=/source/samples/citer
gmake ICU_PREFIX= check
-or-
export LD_LIBRARY_PATH=/lib:.:$LD_LIBRARY_PATH
citer
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.
PK ! 僙 defs.mknu [ # Copyright (C) 2016 and later: Unicode, Inc. and others.
# License & terms of use: http://www.unicode.org/copyright.html#License
#
# Copyright (c) 2002-2012 IBM, Inc. and others
# Sample code makefile definitions
CLEANFILES=*~ $(TARGET).out
####################################################################
# Load ICU information. You can copy this to other makefiles #######
####################################################################
CC=$(shell icu-config --cc)
CXX=$(shell icu-config --cxx)
CPPFLAGS=$(shell icu-config --cppflags)
CFLAGS=$(shell icu-config --cflags)
CXXFLAGS=$(shell icu-config --cxxflags)
LDFLAGS =$^ $(shell icu-config --ldflags)
LDFLAGS_USTDIO =$(shell icu-config --ldflags-icuio)
INVOKE=$(shell icu-config --invoke)
GENRB=$(shell icu-config --invoke=genrb)
GENRBOPT=
PKGDATA=$(shell icu-config --invoke=pkgdata)
SO=$(shell icu-config --so)
PKGDATAOPTS=-r $(shell icu-config --version) -w -v -d .
# default - resources in same mode as ICU
RESMODE=$(shell icu-config --icudata-mode)
####################################################################
### Project independent things (common)
### We depend on gmake for the bulk of the work
RMV=rm -rf
PK ! >|R=B B plurfmtsample/plurfmtsample.cppnu [ /********************************************************************************
* © 2016 and later: Unicode, Inc. and others.
* License & terms of use: http://www.unicode.org/copyright.html#License
********************************************************************************
********************************************************************************
* Copyright (C) 2008-2013, International Business Machines Corporation and
* others. All Rights Reserved.
********************************************************************************
*/
//! [PluralFormatExample1]
#include
#include "unicode/plurfmt.h"
#include "unicode/msgfmt.h"
#include "unicode/ustdio.h"
//! [PluralFormatExample1]
using namespace std;
using namespace icu;
static void PluralFormatExample() {
u_printf("=============================================================================\n");
u_printf(" PluralFormatExample()\n");
u_printf("\n");
u_printf(" Use PluralFormat and Messageformat to get Plural Form for languages below:\n");
u_printf(" English, Slovenian\n");
u_printf("=============================================================================\n");
//! [PluralFormatExample]
UErrorCode status =U_ZERO_ERROR;
Locale locEn = Locale("en");
Locale locSl = Locale("sl");
UnicodeString patEn = UnicodeString("one{dog} other{dogs}"); // English 'dog'
UnicodeString patSl = UnicodeString("one{pes} two{psa} few{psi} other{psov}"); // Slovenian translation of dog in Plural Form
// Create a new PluralFormat for a given locale locale and pattern string
PluralFormat plfmtEn = PluralFormat(locEn, patEn,status);
PluralFormat plfmtSl = PluralFormat(locSl, patSl,status);
// Constructs a MessageFormat for given pattern and locale.
MessageFormat* msgfmtEn = new MessageFormat("{0,number} {1}", locEn,status);
MessageFormat* msgfmtSl = new MessageFormat("{0,number} {1}", locSl,status);
int numbers[] = {0, 1, 2, 3, 4, 5, 10, 100, 101, 102};
u_printf("Output by using PluralFormat and MessageFormat API\n");
u_printf("%-16s%-16s%-16s\n","Number", "English","Slovenian");
// Use MessageFormat.format () to format the objects and append to the given StringBuffer
for (int i=0;iformat(argEn,2,msgEn,fpos,status);
msgfmtSl->format(argSl,2,msgSl,fpos,status);
u_printf("%-16d%-16S%-16S\n", numbers[i], msgEn.getTerminatedBuffer(),msgSl.getTerminatedBuffer());
}
u_printf("\n");
// Equivalent code with message format pattern
UnicodeString msgPatEn = "{0,plural, one{# dog} other{# dogs}}";
UnicodeString msgPatSl = "{0,plural, one{# pes} two{# psa} few{# psi} other{# psov}}";
MessageFormat* altMsgfmtEn = new MessageFormat(msgPatEn, locEn,status);
MessageFormat* altMsgfmtSl = new MessageFormat(msgPatSl, locSl,status);
u_printf("Same Output by using MessageFormat API only\n");
u_printf("%-16s%-16s%-16s\n","Number", "English","Slovenian");
for (int i=0;iformat(arg, 1, msgEn, fPos, status);
altMsgfmtSl->format(arg, 1, msgSl, fPos,status);
u_printf("%-16d%-16S%-16S\n", numbers[i], msgEn.getTerminatedBuffer(), msgSl.getTerminatedBuffer());
}
delete msgfmtEn;
delete msgfmtSl;
delete altMsgfmtEn;
delete altMsgfmtSl;
//! [PluralFormatExample]
/* output of the sample code:
********************************************************************
Number English Slovenian
0 0 dogs 0 psov
1 1 dog 1 pes
2 2 dogs 2 psa
3 3 dogs 3 psi
4 4 dogs 4 psi
5 5 dogs 5 psov
10 10 dogs 10 psov
100 100 dogs 100 psov
101 101 dogs 101 pes
102 102 dogs 102 psa
*********************************************************************/
}
int main (int argc, char* argv[])
{
PluralFormatExample();
return 0;
}
PK ! έ + plurfmtsample/plurfmtsample.vcxproj.filtersnu [
{4FC737F1-C7A5-4376-A066-2A32D752A2FF}
cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx
{93995380-89BD-4b04-88EB-625FBE52EBFB}
h;hpp;hxx;hm;inl;inc;xsd
{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}
rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms
Source Files
PK !