ZPL Strings

This page provides a summary of strings in ZPL. If you find inconsistencies between this document and your use of ZPL, or bugs in user-defined reductions, please let us know at zpl-bugs@cs.washington.edu.

String Implementation

String variables in ZPL are currently implemented using a static array of 256 characters. String assignment is implemented as a copy from the source string to the destination string.

String Operations

Comparison between two strings using the standard ZPL comparators (=, !=, <, <=, >, >=) is supported using C's strcmp() function. In addition, string concatenation is supported using ZPL's + and += operators. Other standard string functions are currently unsupported, either as operators or as library routines, though the user can prototype the C routines and pass ZPL strings in to them. Our goal is eventually to support C's standard string interface in one of these forms. If this lack is holding you up, please let us know.

Further Questions?

If you have further questions about strings in ZPL, please don't hesitate to contact us at zpl-info@cs.washington.edu.