CodeGen
[ class tree: CodeGen ] [ index: CodeGen ] [ all elements ]
Packages:
CodeGen


Classes:
CodeGen_Command
CodeGen_Dependency_Header
CodeGen_Dependency_Lib
CodeGen_Element
CodeGen_Extension
CodeGen_ExtensionParser
CodeGen_License
CodeGen_License_BSD
CodeGen_License_GPL
CodeGen_License_GPL2
CodeGen_License_GPL3
CodeGen_License_LGPL
CodeGen_License_LGPL21
CodeGen_License_PHP
CodeGen_Maintainer
CodeGen_Release
CodeGen_Tools_Code
CodeGen_Tools_FileReplacer
CodeGen_Tools_Getopt
CodeGen_Tools_Group
CodeGen_Tools_Indent
CodeGen_Tools_IndentC
CodeGen_Tools_Outbuf
CodeGen_Tools_Platform
CodeGen_Tools_Tokenizer
CodeGen_XmlParser
Files:
BSD.php
Code.php
Command.php
Element.php
Extension.php
ExtensionParser.php
FileReplacer.php
Getopt.php
GPL.php
GPL2.php
GPL3.php
Group.php
Header.php
Indent.php
IndentC.php
LGPL.php
LGPL3.php
LGPL21.php
Lib.php
License.php
Maintainer.php
Outbuf.php
PHP.php
Platform.php
Release.php
Tokenizer.php
XmlParser.php

Class: CodeGen_Tools_IndentC

Source Location: /CodeGen-1.0.7/CodeGen/Tools/IndentC.php

Class Overview

CodeGen_Tools_Indent
 |
 --CodeGen_Tools_IndentC

C/C++ code specific extension of the Indent class


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 2005-2008 Hartmut Holzgraefe

Methods


Inherited Variables

Inherited Methods

Class: CodeGen_Tools_Indent

CodeGen_Tools_Indent::dosify()
Change to DOS/Windows line terminators
CodeGen_Tools_Indent::indent()
re-indent a block of text
CodeGen_Tools_Indent::linetrim()
Trim of leading and trailing whitespace-only lines
CodeGen_Tools_Indent::tabify()
Replace leading blanks with tabs
CodeGen_Tools_Indent::untabify()
Replace leading tabs with blanks

Class Details

[line 38]
C/C++ code specific extension of the Indent class

So far the only C/C++ specific stuff is that preprocessor commands require the # to be on the first column



[ Top ]


Method Detail

indent [line 52]

string indent( int $level, string $text)

re-indent a block of text

with C/C++ we need to make sure that preporcessor directives always start on the first column

  • Return: indented text
  • Access: public

Overrides CodeGen_Tools_Indent::indent() (re-indent a block of text)

Parameters:

int $level — number of leading indent spaces
string $text — text to reindent

[ Top ]


Documentation generated on 2019年3月11日 15:39:07 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.

AltStyle によって変換されたページ (->オリジナル) /