Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- BHELP On-Line: CBRIEF Macro Help - translate ({patt}, {repl}, {global}, [re], [case], [block], [fwd]) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
translate ({patt}, {repl}, {global}, [re], [case], [block], [fwd])

     Usage: Replaces occurrences of a pattern with a replacement string.
            Translation starts at the current position, and continues
            till end of buffer in the specified direction.

Parameters: Patt .string. is the pattern. Repl .string.
            is the substitute string. Global .int. is non-0 for
            global translation, 0 for the first occurrence only. If
            omitted, BRIEF prompts for each change. Re .int. is
            non-0 or omitted for regular expressions, 0 to treat
            patt as a literal. Re values are:

             VALUE   MATCH DIRECTION             CLOSURE
             -----   ---------------             -------
              1      left to right               minimal
              2      direction of search         minimal
              3      right to left               minimal
             -1      left to right               maximal
             -2      direction of search         maximal
             -3      right to left               maximal

            Case .int. is 0 for case insensitive, non-0 for
            case sensitive, and omitted to use the current search_case
            value.  Block .int. is non-0 to confine the search to
            the currently marked block.  Fwd .int. is non-0 or
            omitted for forward translation, 0 for backward.

   Returns: The number of replacements made.

See Also: search_back search_case search_fwd

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson