wesnoth/src/wml_separators.hpp

37 lines
899 B
C++

/* $Id$ */
/*
Copyright (C) 2003-5 by David White <davidnwhite@verizon.net>
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY.
See the COPYING file for more details.
*/
#ifndef WIDGET_DEFINES_HPP_INCLUDED
#define WIDGET_DEFINES_HPP_INCLUDED
char const HELP_STRING_SEPARATOR = '|', DEFAULT_ITEM = '*', COLUMN_SEPARATOR = '=',
IMAGE_PREFIX = '&', IMG_TEXT_SEPARATOR = 1, HEADING_PREFIX = 2;
inline bool is_wml_separator(char c)
{
switch(c)
{
case HELP_STRING_SEPARATOR:
case DEFAULT_ITEM:
case COLUMN_SEPARATOR:
case IMAGE_PREFIX:
case IMG_TEXT_SEPARATOR:
case HEADING_PREFIX:
return true;
default:
return false;
}
}
#endif