12.07.2015 Views

ILOG OPL Development Studio Language Reference Manual

ILOG OPL Development Studio Language Reference Manual

ILOG OPL Development Studio Language Reference Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

StringsShows how to declare strings in the <strong>OPL</strong> language.<strong>OPL</strong> supports a string data type. The excerpt{string} Tasks = {"masonry","carpentry","plumbing","ceiling","roofing","painting","windows","facade","garden","moving"};defines and initializes a set of strings. Strings can appear in tuples and index arrays.Strings are manipulated in the preprocessing phase via <strong>ILOG</strong> Script. See <strong>ILOG</strong> Script for<strong>OPL</strong> for details on the scripting language.The <strong>OPL</strong> parser supports the following escape sequences inside literal strings:Escape sequences inside literal strings\bbackspace\t\n\f\r\"\\\ooo\xXXtabnewlineform feedcarriage returndouble quotebackslashoctal character ooohexadecimal character XXTo continue a literal string over several lines, you need to escape the new line character:"first line \second line"20I L O G O P L D E V E L O P M E N T S T U D I O L A N G U A G ER E F E R E N C E M A N U A L

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!