Links to functions

To link to a function, you must qualify the function name in the link definition by the parameter types that are input by the function.

If a parameter type is not an SPL type, and it is defined in a namespace that is different from the namespace of the function, you must fully qualify the type name by including the namespace for the type (for example, myNamespace::MyType). Otherwise, you must not include the namespace in the type name.

This example, shows the markup for the parameter types in the link definition where more than one function is named findFirst. The formal parameters of each function are listed in a comma-separated list that is delimited by parentheses. The link label is optional, and specifies the text that is displayed in the link.

Links to functions without the link label
The following markup generates a link without the link label.

Use [findFirst(T,T,int32)] to find the first occurrence of the input string.

The spl-make-doc command generates the following link:

An image of the generated link without text.
Links to functions with the link label
The following markup generates a link with the link label.

Use [findFirst(T,T,int32)|findFirst] to find the first occurrence of the input string.

The spl-make-doc command generates the following link:

An image of the generated link with text.