Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
uniset2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UniSet project repositories
uniset2
Commits
42cfd4b6
Commit
42cfd4b6
authored
Jun 21, 2018
by
Pavel Vainerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(UniXML): const
parent
2e291e93
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
UniXML.h
include/UniXML.h
+2
-2
UniXML.cc
src/Various/UniXML.cc
+2
-2
No files found.
include/UniXML.h
View file @
42cfd4b6
...
...
@@ -58,7 +58,7 @@ namespace uniset
bool
findName
(
const
std
::
string
&
node
,
const
std
::
string
&
searchname
,
bool
deepfind
=
true
)
noexcept
;
bool
find
(
const
std
::
string
&
searchnode
,
bool
deepfind
=
true
)
noexcept
;
xmlNode
*
findX
(
xmlNode
*
root
,
const
std
::
string
&
searchnode
,
bool
deepfind
=
true
)
noexcept
;
xmlNode
*
findX
(
xmlNode
*
root
,
const
std
::
string
&
searchnode
,
bool
deepfind
=
true
)
const
noexcept
;
/*! Перейти к следующему узлу. Возвращает false, если некуда перейти */
bool
goNext
()
noexcept
;
...
...
@@ -187,7 +187,7 @@ namespace uniset
// Функция поиска по текущему уровню (без рекурсии для дочерних узлов)
// root указывается исходный, внутри функции осуществляется переход к списку дочерних узлов
// (другими словами делать goChildren() не надо)
xmlNode
*
findNodeLevel1
(
xmlNode
*
root
,
const
std
::
string
&
nodename
,
const
std
::
string
&
nm
=
""
);
xmlNode
*
findNodeLevel1
(
xmlNode
*
root
,
const
std
::
string
&
nodename
,
const
std
::
string
&
nm
=
""
)
const
;
protected
:
...
...
src/Various/UniXML.cc
View file @
42cfd4b6
...
...
@@ -379,7 +379,7 @@ xmlNode* UniXML::extFindNode( xmlNode* node, int depth, int width, const string&
return
NULL
;
}
// -----------------------------------------------------------------------------
xmlNode
*
UniXML
::
findNodeLevel1
(
xmlNode
*
root
,
const
string
&
nodename
,
const
string
&
nm
)
xmlNode
*
UniXML
::
findNodeLevel1
(
xmlNode
*
root
,
const
string
&
nodename
,
const
string
&
nm
)
const
{
UniXML
::
iterator
it
(
root
);
...
...
@@ -628,7 +628,7 @@ bool UniXML_iterator::find( const std::string& searchnode, bool deepfind ) noexc
return
false
;
}
// -------------------------------------------------------------------------
xmlNode
*
UniXML_iterator
::
findX
(
xmlNode
*
root
,
const
std
::
string
&
searchnode
,
bool
deepfind
)
noexcept
xmlNode
*
UniXML_iterator
::
findX
(
xmlNode
*
root
,
const
std
::
string
&
searchnode
,
bool
deepfind
)
const
noexcept
{
if
(
root
==
NULL
)
return
NULL
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment