Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Algorithms Library Toolkit Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Algorithms Library Toolkit
Algorithms Library Toolkit Core
Commits
95595210
Commit
95595210
authored
9 years ago
by
Jan Trávníček
Browse files
Options
Downloads
Patches
Plain Diff
AlibException->CommonException in alib2raw
parent
200942c8
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
alib2raw/src/string/StringFromRawParser.cpp
+2
-2
2 additions, 2 deletions
alib2raw/src/string/StringFromRawParser.cpp
alib2raw/src/tree/TreeFromRawParser.cpp
+3
-3
3 additions, 3 deletions
alib2raw/src/tree/TreeFromRawParser.cpp
with
5 additions
and
5 deletions
alib2raw/src/string/StringFromRawParser.cpp
+
2
−
2
View file @
95595210
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
*
Author
:
Jan
Travnicek
*
Author
:
Jan
Travnicek
*/
*/
#include
<exception/
Alib
Exception.h>
#include
<exception/
Common
Exception.h>
#include
<string/String.h>
#include
<string/String.h>
#include
<string/StringClasses.h>
#include
<string/StringClasses.h>
#include
<alphabet/Symbol.h>
#include
<alphabet/Symbol.h>
...
@@ -27,7 +27,7 @@ String StringFromRawParser::parseString(std::istream_iterator<char>& input, cons
...
@@ -27,7 +27,7 @@ String StringFromRawParser::parseString(std::istream_iterator<char>& input, cons
if
(
features
.
count
(
FEATURES
::
LINEAR
))
return
String
{
string
};
if
(
features
.
count
(
FEATURES
::
LINEAR
))
return
String
{
string
};
throw
exception
::
Alib
Exception
(
"Invalid input"
);
throw
exception
::
Common
Exception
(
"Invalid input"
);
}
}
}
/* namespace string */
}
/* namespace string */
This diff is collapsed.
Click to expand it.
alib2raw/src/tree/TreeFromRawParser.cpp
+
3
−
3
View file @
95595210
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*/
*/
#include
<sax/FromXMLParserHelper.h>
#include
<sax/FromXMLParserHelper.h>
#include
<exception/
Alib
Exception.h>
#include
<exception/
Common
Exception.h>
#include
<tree/Tree.h>
#include
<tree/Tree.h>
#include
<tree/TreeClasses.h>
#include
<tree/TreeClasses.h>
#include
<alphabet/Symbol.h>
#include
<alphabet/Symbol.h>
...
@@ -26,7 +26,7 @@ Tree TreeFromRawParser::parseTree(std::deque<sax::Token>::iterator& input, const
...
@@ -26,7 +26,7 @@ Tree TreeFromRawParser::parseTree(std::deque<sax::Token>::iterator& input, const
}
else
if
(
sax
::
FromXMLParserHelper
::
isTokenType
(
input
,
sax
::
Token
::
TokenType
::
CHARACTER
))
{
}
else
if
(
sax
::
FromXMLParserHelper
::
isTokenType
(
input
,
sax
::
Token
::
TokenType
::
CHARACTER
))
{
root
=
this
->
parseContentLeaf
(
input
);
root
=
this
->
parseContentLeaf
(
input
);
}
else
{
}
else
{
throw
exception
::
Alib
Exception
(
"Invalid token stream"
);
throw
exception
::
Common
Exception
(
"Invalid token stream"
);
}
}
UnrankedTree
tree
(
std
::
move
(
*
root
));
UnrankedTree
tree
(
std
::
move
(
*
root
));
...
@@ -39,7 +39,7 @@ Tree TreeFromRawParser::parseTree(std::deque<sax::Token>::iterator& input, const
...
@@ -39,7 +39,7 @@ Tree TreeFromRawParser::parseTree(std::deque<sax::Token>::iterator& input, const
if
(
features
.
count
(
FEATURES
::
RANKED_TREE
))
return
Tree
{
RankedTree
{
tree
}};
if
(
features
.
count
(
FEATURES
::
RANKED_TREE
))
return
Tree
{
RankedTree
{
tree
}};
throw
exception
::
Alib
Exception
(
"Invalid input"
);
throw
exception
::
Common
Exception
(
"Invalid input"
);
}
}
UnrankedNode
*
TreeFromRawParser
::
parseContent
(
std
::
deque
<
sax
::
Token
>::
iterator
&
input
)
const
{
UnrankedNode
*
TreeFromRawParser
::
parseContent
(
std
::
deque
<
sax
::
Token
>::
iterator
&
input
)
const
{
...
...
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