noc.core.confdb.tokenizer.line

Module Contents

class noc.core.confdb.tokenizer.line.LineTokenizer(data, eol='n', tab_width=0, line_comment=None, inline_comment=None, keep_indent=False, string_quote=None, rewrite=None)

Bases: noc.core.confdb.tokenizer.base.BaseTokenizer

Line tokenizer. Splits line to tokens

name = line
rx_indent
iter_lines(self)
iter_line_comments(self, iter)
iter_inline_comments(self, iter)
iter_not_empty(self, iter)
iter_untabify(self, iter)
iter_rewrite(self, iter)

Apply rewrite :param iter: :return:

iter_line_tokens(self, line)

Iterate line tokens :param line: :return:

iter_line_quoted_tokens(self, line)

Iterate line tokens considering strings :param line: :return:

__iter__(self)