#461 add space method to mutablebuffer

v4.2.0
closed
None
complete
5
2014-04-15
2012-06-13
No

mutable buffer implements most of the string transformation methods. Space is a notable exception.

Discussion

  • U. Zinngrebe

    U. Zinngrebe - 2012-07-19

    Hi Rick,

    my personal preference is that

    mb ~ space()
    

    would edit the mutable buffer mb.

    Extracting values from the buffer for the purposes of
    examination can already be done by the classic function

         space( mb )
    

    Cheers, Uli

     
  • Per Olov Jonsson

    Dear Mr McGuire,
    I also lack the space method (and function) for Mutable Buffers. This is my current replacement
    tt = tt~translate(' ','0d0a09'x)~Changestr(' ',' ') / my own space method /
    Ugly but is works. a ~space would be more elegant!

     
  • U. Zinngrebe

    U. Zinngrebe - 2012-08-21

    I tried a patch: https://sourceforge.net/p/oorexx/patches/171/

    A remark to P.O. :
    '20'x (space) and '09'x (TAB) are considered whitespace.
    '0D'x (CR) and '0A'x (LF) are not, you'll still have to translate them.

     
    Last edit: U. Zinngrebe 2012-08-21
  • Rick McGuire

    Rick McGuire - 2012-08-21
    • status: open --> accepted
    • assigned_to: Rick McGuire
    • pending_work_items: --> code+doc+test
    • milestone: --> v4.2.0
     
  • Rick McGuire

    Rick McGuire - 2012-08-21
    • pending_work_items: code+doc+test --> doc+test
     
  • Rick McGuire

    Rick McGuire - 2012-08-21

    Committed revision [r8234]

     

    Related

    Commit: [r8234]

  • Rick McGuire

    Rick McGuire - 2012-08-21
    • pending_work_items: doc+test --> tests
     
  • Rick McGuire

    Rick McGuire - 2012-08-21

    Committed doc updates [r8237]

     

    Related

    Commit: [r8237]

  • Rick McGuire

    Rick McGuire - 2012-08-22
    • status: accepted --> pending
    • pending_work_items: tests --> complete
     
  • Rick McGuire

    Rick McGuire - 2014-04-15
    • status: pending --> closed
     


Anonymous

Cancel  Add attachments