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 ! ×Xò ò Makefilenu „[µü¤ # Copyright (C) 2016 and later: Unicode, Inc. and others.
# License & terms of use: http://www.unicode.org/copyright.html#License
#
# Copyright (c) 2001-2004 IBM, Inc. and others
# conversion sample code
# Usage:
# - configure and build ICU [see the docs] .. use "--prefix=" something
# (I used --prefix=/home/srl/III )
#
# - do 'make install' of icu
#
# - set the variable ICU_PREFIX to point at $(prefix)
# (will look for $(prefix)/lib/icu/Makefile.inc )
#
# - set the variable ICU_LEGACY (read the README)
# ( Will look for ICU_LEGACY/include/unicode/ucol.h )
#
# - do 'make' in this directory
#ICU_PREFIX=/home/weiv/build/current
#ICU_LEGACY = /home/weiv/build/icu-1-8-1
LEGACY_INCLUDE = $(ICU_LEGACY)/include
ICU_INC=$(ICU_PREFIX)/lib/icu/Makefile.inc
ICUPATH=
-include $(ICU_INC)
# Name of your target
TARGET=legacy
# All object files (C or C++)
OBJECTS=legacy.o newcol.o oldcol.o
CLEANFILES=*~ $(TARGET).out
DEPS=$(OBJECTS:.o=.d)
# turn on super warnings
#CPPFLAGS += -Wall
all: $(TARGET) $(ICU_INC)
.PHONY: all clean distclean check report
oldcol.o : oldcol.cpp $(LEGACY_INCLUDE)/unicode/ucol.h
$(CXX) -I$(LEGACY_INCLUDE) $(DEFS) $(CPPFLAGS) $(CXXFLAGS) -c oldcol.cpp
distclean clean:
-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
-$(RMV) $(OBJECTS) $(TARGET)
-$(RMV) $(DEPS)
# Can change this to LINK.c if it is a C only program
# Can add more libraries here.
$(TARGET): $(OBJECTS)
$(LINK.cc) -o $@ $^ $(ICULIBS) $(ICU_PREFIX)/lib/libicuuc.so.18 $(ICU_PREFIX)/lib/libicui18n.so.18
# Make check: simply runs the sample, logged to a file
check: $(TARGET)
$(INVOKE) ./$(TARGET) | tee $(TARGET).out
# Make report: creates a 'report file' with both source and sample run
report: $(TARGET).report
$(TARGET).report: check $(TARGET).cpp
more $(TARGET).cpp $(TARGET).out > $@
$(ICU_INC):
@echo ICU_PREFIX variable is not set correctly
@echo "Please read the directions at the top of this file (Makefile)"
@echo "And the README"
@echo "Can't open $(ICU_INC)"
@false
$(LEGACY_INCLUDE)/unicode/ucol.h:
@echo ICU_LEGACY variable is not set correctly.
@echo "Please read the directions at the top of this file (Makefile)"
@echo "And the README"
@echo "Can't open $@"
@false
ifneq ($(MAKECMDGOALS),distclean)
-include $(DEPS)
endif
PK ! ß"b ý ý
legacy.slnnu „[µü¤ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.24720.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "legacy", "legacy.vcxproj", "{57F56795-1802-4605-88A0-013AAE9998F6}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Debug|x64 = Debug|x64
Release|Win32 = Release|Win32
Release|x64 = Release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{57F56795-1802-4605-88A0-013AAE9998F6}.Debug|Win32.ActiveCfg = Debug|Win32
{57F56795-1802-4605-88A0-013AAE9998F6}.Debug|Win32.Build.0 = Debug|Win32
{57F56795-1802-4605-88A0-013AAE9998F6}.Debug|x64.ActiveCfg = Debug|x64
{57F56795-1802-4605-88A0-013AAE9998F6}.Debug|x64.Build.0 = Debug|x64
{57F56795-1802-4605-88A0-013AAE9998F6}.Release|Win32.ActiveCfg = Release|Win32
{57F56795-1802-4605-88A0-013AAE9998F6}.Release|Win32.Build.0 = Release|Win32
{57F56795-1802-4605-88A0-013AAE9998F6}.Release|x64.ActiveCfg = Release|x64
{57F56795-1802-4605-88A0-013AAE9998F6}.Release|x64.Build.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
PK ! ú˜. % % legacy.vcxproj.filtersnu „[µü¤ 
{28feb3e5-286e-4bae-8a94-1831f7734250}
cpp;c;cxx;rc;def;r;odl;idl;hpj;bat
{82030ac6-467e-4020-a013-5b05ba72e3c8}
h;hpp;hxx;hm;inl
{f2650fcf-69b6-4d3c-b3ff-8eb4b63775c9}
ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe
Source Files
Source Files
Source Files
PK ! Qhç ç
oldcol.cppnu „[µü¤ /*
*******************************************************************************
*
* © 2016 and later: Unicode, Inc. and others.
* License & terms of use: http://www.unicode.org/copyright.html#License
*
*******************************************************************************
*******************************************************************************
*
* Copyright (C) 2001-2005, International Business Machines
* Corporation and others. All Rights Reserved.
*
*******************************************************************************
* file name: oldcol.cpp
* encoding: UTF-8
* tab size: 8 (not used)
* indentation:4
*
* created on: 2001jul24
* created by: Vladimir Weinstein
*/
/******************************************************************************
* This is the module that uses old collation
******************************************************************************/
#include
#include
#include
#include
// Very simple example code - sticks a sortkey in the buffer
// Not much error checking
int32_t getSortKey_legacy(const char *locale, const UChar *string, int32_t sLen, uint8_t *buffer, int32_t bLen) {
UErrorCode status = U_ZERO_ERROR;
UCollator *coll = ucol_open(locale, &status);
if(U_FAILURE(status)) {
return -1;
}
int32_t result = ucol_getSortKey(coll, string, sLen, buffer, bLen);
ucol_close(coll);
return result;
}
// This one can be used for passing to qsort function
// Not thread safe or anything
static UCollator *compareCollator = NULL;
int compare_legacy(const void *string1, const void *string2) {
if(compareCollator != NULL) {
UCollationResult res = ucol_strcoll(compareCollator, (UChar *) string1, -1, (UChar *) string2, -1);
if(res == UCOL_LESS) {
return -1;
} else if(res == UCOL_GREATER) {
return 1;
} else {
return 0;
}
} else {
return 0;
}
}
void initCollator_legacy(const char *locale) {
UErrorCode status = U_ZERO_ERROR;
compareCollator = ucol_open(locale, &status);
if(U_FAILURE(status))
{
fprintf(stderr, "initCollator_legacy(%s): error opening collator, %s!\n", locale, u_errorName(status));
fprintf(stderr, "Note: ICU data directory is %s\n", u_getDataDirectory());
fprintf(stderr, "Read the README!\n");
exit(0);
}
}
void closeCollator_legacy(void) {
if(compareCollator != NULL)
{
ucol_close(compareCollator);
}
else
{
fprintf(stderr, "closeCollator_legacy(): collator was already NULL!\n");
}
compareCollator = NULL;
}
extern "C" void test_legacy(UChar data[][5], uint32_t size, uint32_t maxlen, uint8_t keys[4][32]) {
uint32_t i = 0;
int32_t keySize = 0;
UVersionInfo uvi;
u_getVersion(uvi);
fprintf(stderr, "Entered legacy, version: [%d.%d.%d.%d]\nMoving to sortkeys\n", uvi[0], uvi[1], uvi[2], uvi[3]);
for(i = 0; i