Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
le4
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Harbor Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Linux Educacional 4
le4
Commits
0cd81b65
Commit
0cd81b65
authored
12 years ago
by
Klismann Smoger Mottin
Browse files
Options
Downloads
Patches
Plain Diff
le-search: Fix character encoding conversion
parent
958c4800
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
le-search/gerar.sh
+0
-0
0 additions, 0 deletions
le-search/gerar.sh
le-search/src/Makefile
+9
-11
9 additions, 11 deletions
le-search/src/Makefile
le-search/src/categorize.cpp
+11
-1
11 additions, 1 deletion
le-search/src/categorize.cpp
le-search/src/qt.pro
+3
-2
3 additions, 2 deletions
le-search/src/qt.pro
with
23 additions
and
14 deletions
le-search/gerar.sh
100644 → 100755
+
0
−
0
View file @
0cd81b65
File mode changed from 100644 to 100755
This diff is collapsed.
Click to expand it.
le-search/src/Makefile
+
9
−
11
View file @
0cd81b65
#############################################################################
# Makefile for building:
qt
# Generated by qmake (2.01a) (Qt 4.
7.0
) on:
qui jan 27 10:12:45
201
1
# Makefile for building:
le-search
# Generated by qmake (2.01a) (Qt 4.
6.2
) on:
seg set 10 14:06:51
201
2
# Project: qt.pro
# Template: app
# Command: /usr/bin/qmake -o Makefile qt.pro
# Command: /usr/bin/qmake
-unix
-o Makefile qt.pro
#############################################################################
####### Compiler, tools and options
...
...
@@ -13,10 +13,10 @@ CXX = g++
DEFINES
=
-DQT_NO_DEBUG
-DQT_GUI_LIB
-DQT_CORE_LIB
-DQT_SHARED
CFLAGS
=
-pipe
-O2
-Wall
-W
-D_REENTRANT
$(
DEFINES
)
CXXFLAGS
=
-pipe
-O2
-Wall
-W
-D_REENTRANT
$(
DEFINES
)
INCPATH
=
-I
/usr/share/qt4/mkspecs/linux-g++
-I
.
-I
/usr/include/qt4/QtCore
-I
/usr/include/qt4/QtGui
-I
/usr/include/qt4
-I
/usr/include/libxml2
-I
.
-I
.
-I
.
INCPATH
=
-I
/usr/share/qt4/mkspecs/linux-g++
-I
.
-I
/usr/include/qt4/QtCore
-I
/usr/include/qt4/QtGui
-I
/usr/include/qt4
-I
/usr/include/libxml2
-I
.
-I
.
LINK
=
g++
LFLAGS
=
-Wl
,-O1
LIBS
=
$(
SUBLIBS
)
-L
/usr/lib
-lQtGui
-lQtCore
-lpthread
-lxml2
LIBS
=
$(
SUBLIBS
)
-L
/usr/lib
-lxml2
-lQtGui
-lQtCore
-lpthread
AR
=
ar cqs
RANLIB
=
QMAKE
=
/usr/bin/qmake
...
...
@@ -128,7 +128,7 @@ Makefile: qt.pro /usr/share/qt4/mkspecs/linux-g++/qmake.conf /usr/share/qt4/mks
/usr/share/qt4/mkspecs/features/include_source_dir.prf
\
/usr/lib/libQtGui.prl
\
/usr/lib/libQtCore.prl
$(
QMAKE
)
-o
Makefile qt.pro
$(
QMAKE
)
-unix
-o
Makefile qt.pro
/usr/share/qt4/mkspecs/common/g++.conf
:
/usr/share/qt4/mkspecs/common/unix.conf
:
/usr/share/qt4/mkspecs/common/linux.conf
:
...
...
@@ -151,11 +151,11 @@ Makefile: qt.pro /usr/share/qt4/mkspecs/linux-g++/qmake.conf /usr/share/qt4/mks
/usr/lib/libQtGui.prl
:
/usr/lib/libQtCore.prl
:
qmake
:
FORCE
@$(
QMAKE
)
-o
Makefile qt.pro
@$(
QMAKE
)
-unix
-o
Makefile qt.pro
dist
:
@$(
CHK_DIR_EXISTS
)
.tmp/
qt
1.0.0
||
$(
MKDIR
)
.tmp/
qt
1.0.0
$(
COPY_FILE
)
--parents
$(
SOURCES
)
$(
DIST
)
.tmp/
qt
1.0.0/
&&
$(
COPY_FILE
)
--parents
categorize.h convert.h main.h mySearch.h readXml.h walk.h .tmp/
qt
1.0.0/
&&
$(
COPY_FILE
)
--parents
categorize.cpp convert.c main.cpp mySearch.cpp readXml.c walk.c .tmp/
qt
1.0.0/
&&
$(
COPY_FILE
)
--parents
mySearch.ui mySearchHelp.ui .tmp/
qt
1.0.0/
&&
(
cd
`
dirname
.tmp/
qt
1.0.0
`
&&
$(
TAR
)
qt
1.0.0.tar
qt
1.0.0
&&
$(
COMPRESS
)
qt
1.0.0.tar
)
&&
$(
MOVE
)
`
dirname
.tmp/
qt1.0.0
`
/qt
1.0.0.tar.gz
.
&&
$(
DEL_FILE
)
-r
.tmp/
qt
1.0.0
@$(
CHK_DIR_EXISTS
)
.tmp/
le-search
1.0.0
||
$(
MKDIR
)
.tmp/
le-search
1.0.0
$(
COPY_FILE
)
--parents
$(
SOURCES
)
$(
DIST
)
.tmp/
le-search
1.0.0/
&&
$(
COPY_FILE
)
--parents
categorize.h convert.h main.h mySearch.h readXml.h walk.h .tmp/
le-search
1.0.0/
&&
$(
COPY_FILE
)
--parents
categorize.cpp convert.c main.cpp mySearch.cpp readXml.c walk.c .tmp/
le-search
1.0.0/
&&
$(
COPY_FILE
)
--parents
mySearch.ui mySearchHelp.ui .tmp/
le-search
1.0.0/
&&
(
cd
`
dirname
.tmp/
le-search
1.0.0
`
&&
$(
TAR
)
le-search
1.0.0.tar
le-search
1.0.0
&&
$(
COMPRESS
)
le-search
1.0.0.tar
)
&&
$(
MOVE
)
`
dirname
.tmp/
le-search1.0.0
`
/le-search
1.0.0.tar.gz
.
&&
$(
DEL_FILE
)
-r
.tmp/
le-search
1.0.0
clean
:
compiler_clean
...
...
@@ -170,8 +170,6 @@ distclean: clean
-$(
DEL_FILE
)
Makefile
check
:
first
mocclean
:
compiler_moc_header_clean compiler_moc_source_clean
mocables
:
compiler_moc_header_make_all compiler_moc_source_make_all
...
...
This diff is collapsed.
Click to expand it.
le-search/src/categorize.cpp
+
11
−
1
View file @
0cd81b65
...
...
@@ -22,6 +22,16 @@ void categorizeXml(const char *xmlFile, map<string, set<string> >& M) {
node
.
media
=
xmlTextReaderGetAttribute
(
reader
,
xmlCharStrdup
(
"media"
));
category
=
QString
().
fromLatin1
((
char
*
)
node
.
category
).
toStdString
();
media
=
QString
().
fromLatin1
((
char
*
)
node
.
media
).
toStdString
();
//Original
//category = QString().fromUtf8((char *)node.category).toStdString();
//media = QString().fromUtf8((char *)node.media).toStdString();
//Teste pra ver a saída na tela
// if ( string((char*)node.category) == "História" ) {
// cout << "node.category = " << node.category << endl;
// cout << "category = " << category << endl;
// }
M
[
media
].
insert
(
category
);
}
ret
=
xmlTextReaderRead
(
reader
);
...
...
This diff is collapsed.
Click to expand it.
le-search/src/qt.pro
+
3
−
2
View file @
0cd81b65
...
...
@@ -3,9 +3,10 @@
######################################################################
TEMPLATE
=
app
TARGET
=
TARGET
=
le
-
search
DEPENDPATH
+=
.
INCLUDEPATH
+=
.
INCLUDEPATH
+=
/
usr
/
include
/
libxml2
LIBS
+=
-
lxml2
#
Input
HEADERS
+=
categorize
.
h
convert
.
h
main
.
h
mySearch
.
h
readXml
.
h
walk
.
h
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment