Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
David Youssefi
otb
Commits
dcd0a524
Commit
dcd0a524
authored
18 years ago
by
Thomas Feuvrier
Browse files
Options
Downloads
Patches
Plain Diff
Mise a jour methode d'analyse des adresses : prise en compte des adresses non entre-parenthèse.
parent
7030e21a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Code/Common/otbTestMain.h
+27
-9
27 additions, 9 deletions
Code/Common/otbTestMain.h
with
27 additions
and
9 deletions
Code/Common/otbTestMain.h
+
27
−
9
View file @
dcd0a524
...
...
@@ -335,14 +335,33 @@ bool isNumeric(std::string str)
bool
isHexaPointerAddress
(
std
::
string
str
)
{
unsigned
int
size
=
str
.
size
();
bool
result
=
((
str
[
0
]
==
40
)
&&
(
str
[
size
-
1
]
==
41
)
&&
(
str
[
1
]
==
48
)
&&
(
str
[
2
]
==
120
)
&&
(
size
==
11
));
unsigned
int
i
=
3
;
while
(
result
&&
(
i
<
size
-
1
))
unsigned
int
size
(
0
);
bool
result
(
false
);
unsigned
int
start
;
//If (0xadresss)
if
(
(
str
[
0
]
==
40
)
&&
(
str
[
str
.
size
()
-
1
]
==
41
)
&&
(
str
[
1
]
==
48
)
&&
(
str
[
2
]
==
120
)
&&
(
str
.
size
()
==
11
))
{
result
=
true
;
start
=
3
;
size
=
str
.
size
()
-
1
;
}
//If 0xadresss
else
if
(
(
str
[
0
]
==
48
)
&&
(
str
[
1
]
==
120
)
&&
(
str
.
size
()
==
9
))
{
result
=
true
;
start
=
2
;
size
=
str
.
size
();
}
unsigned
int
i
(
start
);
while
(
result
&&
(
i
<
size
))
{
result
=
result
&&
isHexaNumber
(
str
[
i
]);
++
i
;
...
...
@@ -407,7 +426,6 @@ int RegressionTestAsciiFile(const char * testAsciiFileName, const char * baselin
bool
chgt
=
false
;
std
::
string
charTmpRef
;
std
::
string
charTmpTest
;
unsigned
int
i
=
0
;
if
(
!
isHexaPointerAddress
(
strRef
))
{
...
...
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