Menu

#517 Add 'getkeyval()' function

v1.1.x
closed
None
v1.1.2
New Functionality
2020-03-31
2020-02-15
Erik Hänel
No

Add a getkeyval() function with the following properties:

getkeyval({sKeyValList}, sKey, sDefault, [isstrict]) -> ARG

This function can be partly simulated using the following expression:

clst{locate(clst{}, "par2")+1}

Analysis:

This function can be derived from strfnc_locate() using the same signature as strfnc_replaceall(). Additionally, the function evaluator StringFuncHandler::evalFunction() has to be adapted, so that the longest parameter list also can use multiple arguments.

Implementation:

  • Implementation: The function was implemented as proposed by the analysis.
  • Revision: [r691]
  • Implementation test: The function was tested with a list and yielded corresponding results.

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:

Functionality was added to the automatic SW tests. No deviations detected. Functionality implemented successfully.

Related

Commit: [r691]

Discussion

  • Erik Hänel

    Erik Hänel - 2020-02-15
    • status: open --> accepted
     
  • Erik Hänel

    Erik Hänel - 2020-02-15
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -6,3 +6,24 @@
    
         clst{locate(clst{}, "par2")+1}
    
    +###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-02-15
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -7,7 +7,7 @@
         clst{locate(clst{}, "par2")+1}
    
     ###Analysis:
    -(*Describe, what's the issue and which changes have to be made*)
    +This function can be derived from `strfnc_locate()` using the same signature as `strfnc_replaceall()`. Additionally, the function evaluator `StringFuncHandler::evalFunction()` has to be adapted, so that the longest parameter list also can use multiple arguments.
    
     ###Implementation:
    
     * Implementation: (*Describe, what you've changed*) 
    
    • status: analyzing --> implementing
     
  • Erik Hänel

    Erik Hänel - 2020-02-15
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -10,19 +10,19 @@
     This function can be derived from `strfnc_locate()` using the same signature as `strfnc_replaceall()`. Additionally, the function evaluator `StringFuncHandler::evalFunction()` has to be adapted, so that the longest parameter list also can use multiple arguments.
    
     ###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: The function was implemented as proposed by the analysis.
    +* Revision: [r691]
    +* Implementation test: The function was tested with a list and yielded corresponding results.
    
     ###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: [r691]

  • Erik Hänel

    Erik Hänel - 2020-03-31
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -26,4 +26,4 @@
    
         * [ ] not needed
    
     ###Tests:
    -(*Describe, which tests you performed and their outcome*)
    +Functionality was added to the automatic SW tests. No deviations detected. Functionality implemented successfully.
    
    • status: testing --> closed
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB