std-detab


Synopsis

(std-detab <str> <n>)

(std-detab8 <str>) ; = (std-detab <str> 8)

Description

std-detab expands any tabulators in a string to multiple spaces. The number n (mostly used with 8) gives the multiplicator at which positions the tabs jump to, based on 1.

n=8: => (1 9 17 ...)

Mostly used is probably detab8 which is defined as (defun detab8 (s) (std-detab s 8))

It is the complement to std-entab.

Example

(std-detab "\ttest" 8)  => "        test"

Arguments

str: a string.

n: a positive integer number >0.

Return Value

A string.

Side Effects

None.

Module

(std-require 'STDSTR)

Defined in STDSTR