| Home | Trees | Indices | Help |
|
|---|
|
|
Utility functions for operating on text
These text utilities have no dependencies on any other part of peppy, and therefore may be used independently of peppy.
| Functions | |||
|
|||
|
|||
|
|||
| tuple |
|
||
| boolean |
|
||
| Function Details |
Translate string to pig latin. Simple pig latin translator that properly capitalizes the resulting string, and skips over any leading or trailing non-alphabetic characters. |
Given a byte string, get the first two lines. "Magic comments" appear in the first two lines of the file, and can indicate the encoding of the file or the major mode in which the file should be interpreted. |
Determine if the header specifies a major mode. Parse a potential emacs major mode specifier line into the mode and the optional variables. The mode may appears as any of: -*-C++-*- -*- mode: Python; -*- -*- mode: Ksh; var1:value1; var3:value9; -*-
|
Guess if this is a text or binary file. Guess if the text in this file is binary or text by scanning through
the first Obviously this is a poor check for unicode files, so this is just a bit of a hack.
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Thu Feb 21 14:51:13 2008 | http://epydoc.sourceforge.net |