Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/lexborisov/Modest.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/mycss/property/init.c')
-rw-r--r--source/mycss/property/init.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/source/mycss/property/init.c b/source/mycss/property/init.c
index 3b8169b..551018e 100644
--- a/source/mycss/property/init.c
+++ b/source/mycss/property/init.c
@@ -1,5 +1,5 @@
/*
- Copyright (C) 2016 Alexander Borisov
+ Copyright (C) 2016-2017 Alexander Borisov
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
@@ -20,22 +20,22 @@
#include "mycss/property/init.h"
#include "mycss/property/resources.h"
-#include "myhtml/utils/resources.h"
+#include "mycore/utils/resources.h"
const mycss_property_index_static_entry_t * mycss_property_index_entry_by_name(const char* name, size_t length)
{
if(length == 0)
return NULL;
- size_t idx = ((myhtml_string_chars_lowercase_map[ (const unsigned char)name[0] ] *
- myhtml_string_chars_lowercase_map[ (const unsigned char)name[(length - 1)] ] *
+ size_t idx = ((mycore_string_chars_lowercase_map[ (const unsigned char)name[0] ] *
+ mycore_string_chars_lowercase_map[ (const unsigned char)name[(length - 1)] ] *
length)
% MyCSS_PROPERTY_STATIC_INDEX_FOR_SEARCH_SIZE) + 1;
while (mycss_property_index_static_for_search[idx].name)
{
if(mycss_property_index_static_for_search[idx].name_length == length) {
- if(myhtml_strncasecmp(mycss_property_index_static_for_search[idx].name, name, length) == 0)
+ if(mycore_strncasecmp(mycss_property_index_static_for_search[idx].name, name, length) == 0)
return &mycss_property_index_static_for_search[idx];
if(mycss_property_index_static_for_search[idx].next)
@@ -69,15 +69,15 @@ const mycss_property_value_index_static_entry_t * mycss_property_value_index_ent
if(length == 0)
return NULL;
- size_t idx = ((myhtml_string_chars_lowercase_map[ (const unsigned char)name[0] ] *
- myhtml_string_chars_lowercase_map[ (const unsigned char)name[(length - 1)] ] *
+ size_t idx = ((mycore_string_chars_lowercase_map[ (const unsigned char)name[0] ] *
+ mycore_string_chars_lowercase_map[ (const unsigned char)name[(length - 1)] ] *
length)
% MyCSS_PROPERTY_VALUE_STATIC_INDEX_FOR_SEARCH_SIZE) + 1;
while (mycss_property_value_index_static_for_search[idx].name)
{
if(mycss_property_value_index_static_for_search[idx].name_length == length) {
- if(myhtml_strncasecmp(mycss_property_value_index_static_for_search[idx].name, name, length) == 0)
+ if(mycore_strncasecmp(mycss_property_value_index_static_for_search[idx].name, name, length) == 0)
return &mycss_property_value_index_static_for_search[idx];
if(mycss_property_value_index_static_for_search[idx].next)