~ubuntu-branches/ubuntu/feisty/renameutils/feisty

« back to all changes in this revision

Viewing changes to src/common/tab-utils.h

  • Committer: Bazaar Package Importer
  • Author(s): Francois Marier
  • Date: 2004-04-29 13:41:34 UTC
  • Revision ID: james.westby@ubuntu.com-20040429134134-vwe8r35v0mmk3s9m
Tags: 0.4.0-2
* Fixed a typo in the qmv manpage (Closes: #245196)
* Changed short and long description
* Fixed build error on 64-bit machines (Closes: #246179)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* tab-utils.h - Utility functions dealing with strings and tabs.
 
2
 *
 
3
 * Copyright (C) 2001  Oskar Liljeblad
 
4
 *
 
5
 * This file is part of the file renaming utilities (renameutils)
 
6
 * and regex-markup.
 
7
 *
 
8
 * This software is copyrighted work licensed under the terms of the
 
9
 * GNU General Public License. Please consult the file `COPYING' for
 
10
 * details.
 
11
 */
 
12
 
 
13
#ifndef __TAB_UTILS_H__
 
14
#define __TAB_UTILS_H__
 
15
 
 
16
#include <stdio.h>
 
17
 
 
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);
 
22
 
 
23
extern inline char
 
24
tab_char_at(const char *string, int pos, int tabsize)
 
25
{
 
26
        return string[tab_index(string, pos, tabsize)];
 
27
}
 
28
 
 
29
#endif