Package DOCTAGHelpers is an Object
Provides helper methods used by the doctags-implementation
Reference:
replace the {type} marker
replace the {type.index} marker
strip all {type.index} markers that are left
Public method create_type_url
create an URL or skip the URL for the given type, depending on the given namespace and definition
Parameters:
type must be a String
definition can be an Array or a String
An array as documented below or the URL to return
[…].0 is optional and must be a String
A Function in namespace[definition.0] or an URL-fragment prepended to the result
[…].1 is optional and must be an Array
A string to strip from the start of type or third argument of namespace[definition.0](…)
[…].2 is optional and must be an Array
A string to append to the URL or fourth argument of namespace[definition.0](…)
[…].3 is optional and must be an Array
A string to split type or fifth argument of namespace[definition.0](…)
[…].4 is optional and must be an Array
A string to join the splitted type or sixth argument of namespace[definition.0](…)
Returns a String, a Boolean or null
Reference:
Public method url_encode
encode a string-fragment for URLs including some extra characters, which might cause troubles under some circumstances:
!->%21'->%27(->%28)->%29*->%2A.->%2E~->%7E
TODO: Fix indent-detection and remove work-around citations as above …
Parameter:
Returns a String
Doctag Helpers