Modest/include/mycss/values/units_resources.h
2016-08-29 01:20:40 +04:00

238 lines
9.9 KiB
C

/*
Copyright (C) 2016 Alexander Borisov
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 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
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Author: lex.borisov@gmail.com (Alexander Borisov)
*/
#ifndef MyHTML_MyCSS_VALUES_UNITS_RESOURCES_H
#define MyHTML_MyCSS_VALUES_UNITS_RESOURCES_H
#pragma once
#define MyCSS_UNITS_STATIC_INDEX_FOR_SEARCH_SIZE 199
static const char * mycss_units_index_name[31] = {
"", "deg", "grad", "rad", "turn", "Hz", "kHz", "cm", "in", "mm", "pc",
"pt", "px", "q", "ch", "em", "ex", "ic", "rem", "vb", "vh",
"vi", "vmax", "vmin", "vw", "dpcm", "dpi", "dppx", "ms", "s", NULL
};
static const mycss_units_index_static_entry_t mycss_units_index_static_for_search[] =
{
{NULL, 0, MyCSS_UNIT_TYPE_UNDEF, 0, 0},
{NULL, 0, MyCSS_UNIT_TYPE_UNDEF, 0, 0},
{NULL, 0, MyCSS_UNIT_TYPE_UNDEF, 0, 0},
{NULL, 0, MyCSS_UNIT_TYPE_UNDEF, 0, 0},
{NULL, 0, MyCSS_UNIT_TYPE_UNDEF, 0, 0},
{NULL, 0, MyCSS_UNIT_TYPE_UNDEF, 0, 0},
{NULL, 0, MyCSS_UNIT_TYPE_UNDEF, 0, 0},
{NULL, 0, MyCSS_UNIT_TYPE_UNDEF, 0, 0},
{"grad", 4, MyCSS_UNIT_TYPE_GRAD, 0, 8},
{NULL, 0, MyCSS_UNIT_TYPE_UNDEF, 0, 0},
{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