Text::Tabs

Raku port of Perl's Text::Tabs

NAME

Text::Tabs - Raku implementation of expand and unexpand utilities.

SYNOPSIS

use Text::Tabs;

# Text with TAB characters replaced by 4 spaces.
say expand(@lines-with-tabs, :tab-stop(4));
say expand("these\tlines\n\nhave \t\t tabs\n", "in\tthem\ntoo\n", :ts(4));

# Opposite, but 8 spaces is one TAB character now.
say unexpand(@lines-with-spaces, :tab-stop(8));
say unexpand("tab >   < here");  # Default tab stop = 8

DESCRIPTION

It's a slightly expanded port of Perl 5 module Text::Tabs, which in turn just Perlish implementation of expand/unexpand utilities.

BUGS

To report bugs or request features, please use https://github.com/Altai-man/perl6-Text-Tabs/issues

LICENSE

You can use and distribute this module under the terms of the The Artistic License 2.0. See the LICENSE file included in this distribution for complete details.

Text::Tabs v1.0

Raku port of Perl's Text::Tabs

Authors

  • github:softmoth
  • github:Altai-man

License

Artistic-2.0

Dependencies

Test Dependencies

Provides

  • Text::Tabs

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.