Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
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
savoirfairelinux
jami-daemon
Commits
24f86a02
Commit
24f86a02
authored
15 years ago
by
pierre-luc
Browse files
Options
Downloads
Patches
Plain Diff
[#1744] Fix inconsistency in the finditer method from the last commit.
parent
dacf7f83
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
sflphone-common/src/sip/Regex.cpp
+4
-3
4 additions, 3 deletions
sflphone-common/src/sip/Regex.cpp
sflphone-common/src/sip/Regex.h
+13
-1
13 additions, 1 deletion
sflphone-common/src/sip/Regex.h
with
17 additions
and
4 deletions
sflphone-common/src/sip/Regex.cpp
+
4
−
3
View file @
24f86a02
...
...
@@ -125,11 +125,12 @@ namespace sfl {
return
_outputVector
;
}
std
::
vector
<
std
::
string
>::
iterator
Regex
::
finditer
(
const
std
::
string
&
subject
)
range
Regex
::
finditer
(
const
std
::
string
&
subject
)
{
findall
(
subject
);
std
::
vector
<
std
::
string
>::
iterator
iter
=
_outputVector
.
begin
();
return
iter
;
std
::
vector
<
std
::
string
>::
iterator
iterBegin
=
_outputVector
.
begin
();
std
::
vector
<
std
::
string
>::
iterator
iterEnd
=
_outputVector
.
end
();
return
range
(
iterBegin
,
iterEnd
);
}
}
This diff is collapsed.
Click to expand it.
sflphone-common/src/sip/Regex.h
+
13
−
1
View file @
24f86a02
...
...
@@ -25,6 +25,18 @@
namespace
sfl
{
/**
* While waiting for C++0x to come out
* Let's say that we have something like
* std::range
*
* Defines a pair of iterator over a vector of
* strings. The fist element corresponds to the
* begining of the vector, while the second is
* set to the end.
*/
typedef
std
::
pair
<
std
::
vector
<
std
::
string
>::
iterator
,
std
::
vector
<
std
::
string
>::
iterator
>
range
;
/**
* Exception object that is throw when
* an error occured while compiling the
...
...
@@ -99,7 +111,7 @@ namespace sfl {
* containing the substrings that
* were matched.
*/
std
::
vector
<
std
::
string
>::
iterator
finditer
(
const
std
::
string
&
subject
);
range
finditer
(
const
std
::
string
&
subject
);
private:
...
...
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