Menu

#528 Implement regular (string) expressions

v1.1.x
closed
None
v1.1.3
New Functionality
2021-03-22
2020-06-03
Erik Hänel
No

Implement a function like

regex(REGEX, STRING, [POS, LEN])

to implement regular expressions.

Analysis:

We can use the STL-regex library to implement a wrapper around regex_search(), which will return the locations in combination with a match_results structure.

Implementation:

  • Implementation: New functionality was implemented as proposed by the analysis.
  • Revision: [r797]
  • Implementation test: A regular expression was tested and a erroneous one was used to test the exception handling.

Documentation:

  • [x] ChangesLog updated
  • [x] Code changes commented
  • Documentation articles:
    • [x] corresponding documentation articles updated
    • [ ] new documentation articles created
    • [ ] not needed
  • Language files:
    • [x] corresponding language files updated
    • [ ] not needed

Tests:

Added to the SW tests. Tests run without any deviation.

Related

Commit: [r797]

Discussion

  • Erik Hänel

    Erik Hänel - 2020-11-15
    • status: open --> accepted
    • Version: Planned --> v1.1.3
     
  • Erik Hänel

    Erik Hänel - 2020-11-19
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -3,3 +3,25 @@
         regex(REGEX, STRING, [POS, LEN])
    
     to implement regular expressions.
    +
    +###Analysis:
    +(*Describe, what's the issue and which changes have to be made*)
    +
    +###Implementation:
    +* Implementation: (*Describe, what you've changed*) 
    +* Revision: [rXXX]
    +* Implementation test: (*Describe the type of test, which you performed, and if it was successful*)
    +
    +###Documentation:
    +* [ ] ChangesLog updated
    +* [ ] Code changes commented
    +* **Documentation articles:**
    
    +    * [ ] corresponding documentation articles updated
    +    * [ ] new documentation articles created
    +    * [ ] not needed
    +* **Language files:**
    +    * [ ] corresponding language files updated
    +    * [ ] not needed
    +
    +###Tests:
    +(*Describe, which tests you performed and their outcome*)
    
    • status: accepted --> analyzing
     
  • Erik Hänel

    Erik Hänel - 2020-11-19
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -5,7 +5,7 @@
     to implement regular expressions.
    
     ###Analysis:
    -(*Describe, what's the issue and which changes have to be made*)
    +We can use the STL-regex library to implement a wrapper around `regex_search()`, which will return the locations in combination with a `match_results` structure.
    
     ###Implementation:
    
     * Implementation: (*Describe, what you've changed*) 
    
    • status: analyzing --> implementing
     
  • Erik Hänel

    Erik Hänel - 2020-11-20
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -8,19 +8,19 @@
     We can use the STL-regex library to implement a wrapper around `regex_search()`, which will return the locations in combination with a `match_results` structure.
    
     ###Implementation:
    -* Implementation: (*Describe, what you've changed*) 
    -* Revision: [rXXX]
    -* Implementation test: (*Describe the type of test, which you performed, and if it was successful*)
    +* Implementation: New functionality was implemented as proposed by the analysis.
    +* Revision: [r797]
    +* Implementation test: A regular expression was tested and a erroneous one was used to test the exception handling.
    
     ###Documentation:
    -* [ ] ChangesLog updated
    -* [ ] Code changes commented
    +* [x] ChangesLog updated
    +* [x] Code changes commented
    
     * **Documentation articles:**
    -    * [ ] corresponding documentation articles updated
    +    * [x] corresponding documentation articles updated
         * [ ] new documentation articles created
         * [ ] not needed
     * **Language files:**
    -    * [ ] corresponding language files updated
    +    * [x] corresponding language files updated
         * [ ] not needed
    
     ###Tests:
    
    • status: implementing --> testing
     

    Related

    Commit: [r797]

  • Erik Hänel

    Erik Hänel - 2021-03-22
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -24,4 +24,4 @@
    
         * [ ] not needed
    
     ###Tests:
    -(*Describe, which tests you performed and their outcome*)
    +Added to the SW tests. Tests run without any deviation.
    
    • status: testing --> closed
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB