/* Copyright (C) 2002 The gtkmm Development Team * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the Free * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include _DEFS(pangomm,pango) namespace Pango { _WRAP_ENUM(Script, PangoScript) /** A Pango::Language is used to represent a language. */ class Language { _CLASS_BOXEDTYPE(Language, PangoLanguage, _pango_language_new, _pango_language_copy, _pango_language_free) _IGNORE(pango_language_get_sample_string) //This function is a bad hack for internal use by renderers and Pango (from pango/pango-utils.c) _IGNORE(pango_language_to_string) //This is defined as a macro _CUSTOM_DEFAULT_CTOR public: /** Constructs an empty language tag. */ Language(); /** Constructs a Pango::Language object from a RFC-3066 format language tag. * This function first canonicalizes the string by converting it to lowercase, * mapping '_' to '-', and stripping all characters other than letters and '-'. */ Language(const Glib::ustring& language); /** Gets a RFC-3066 format string representing the given language tag. * @return A string representing the language tag. An empty string is returned if the language tag is empty. */ Glib::ustring get_string() const; _WRAP_METHOD(bool matches(const Glib::ustring & range_list) const, pango_language_matches) _WRAP_METHOD(bool includes_script(Script script) const, pango_language_includes_script) }; } /* namespace Pango */