1
/* tab-utils.h - Utility functions dealing with strings and tabs.
3
* Copyright (C) 2001 Oskar Liljeblad
5
* This file is part of the file renaming utilities (renameutils)
8
* This software is copyrighted work licensed under the terms of the
9
* GNU General Public License. Please consult the file `COPYING' for
13
#ifndef __TAB_UTILS_H__
14
#define __TAB_UTILS_H__
18
void tab_to(FILE *out, int from, int to, int tabsize);
19
size_t tab_len(const char *string, int tabsize);
20
char tab_char_at(const char *string, int pos, int tabsize);
21
int tab_index(const char *string, int pos, int tabsize);
24
tab_char_at(const char *string, int pos, int tabsize)
26
return string[tab_index(string, pos, tabsize)];