GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  HTML::TIDY::MESSAGE (3)

.ds Aq ’

NAME

HTML::Tidy::Message - Message object for the Tidy functionality

CONTENTS

SYNOPSIS

See HTML::Tidy for all the gory details.

EXPORTS

None. It’s all object-based.

METHODS

Almost everything is an accessor.

new( CW$file, CW$line, CW$column, CW$text )

Create an object. It’s not very exciting.

where()

Returns a formatted string that describes where in the file the error has occurred.

For example,



    (14:23)



for line 14, column 23.

The terrible thing about this function is that it’s both a plain ol’ formatting function as in



    my $str = where( 14, 23 );



AND it’s an object method, as in:



    my $str = $error->where();



I don’t know what I was thinking when I set it up this way, but it’s bad practice.

as_string()

Returns a nicely-formatted string for printing out to stdout or some similar user thing.

file()

Returns the filename of the error, as set by the caller.

type()

Returns the type of the error. This will either be TIDY_ERROR, or TIDY_WARNING.

line()

Returns the line number of the error, or 0 if there isn’t an applicable line number.

column()

Returns the column number, or 0 if there isn’t an applicable column number.

text()

Returns the text of the message. This does not include a type string, like Info: .

COPYRIGHT & LICENSE

Copyright 2005-2013 Andy Lester.

This program is free software; you can redistribute it and/or modify it under the terms of the Artistic License v2.0.

AUTHOR

Andy Lester, <andy@petdance.com>
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 HTML::TIDY::MESSAGE (3) 2013-09-22

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.