string_truncate (public, deprecated)

 string_truncate [ args... ]

Defined in packages/acs-tcl/tcl/text-html-procs.tcl

Deprecated. Invoking this procedure generates a warning.

Truncates a string to len characters adding the string provided in the ellipsis parameter if the string was truncated. The length of the resulting string, including the ellipsis, is guaranteed to be shorter or equal than the len specified. Should always be called as ad_string_truncate [-flags ...] -- string since otherwise strings which start with a - will treated as switches, and will cause an error.

Returns:
The truncated string
Author:
Lars Pind <lars@pinds.com>
Created:
September 8, 2002 DEPRECATED: does not comply with OpenACS naming convention

See Also:

Partial Call Graph (max 5 caller/called nodes):
%3 ad_get_tcl_call_stack ad_get_tcl_call_stack (public) ad_string_truncate ad_string_truncate (public) string_truncate string_truncate string_truncate->ad_get_tcl_call_stack string_truncate->ad_string_truncate

Testcases:
No testcase defined.
Source code:
ns_log Notice "Deprecated proc string_truncate used:\n[ad_get_tcl_call_stack]"

    return [ad_string_truncate {*}$args]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: