mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-04-05 03:19:03 +02:00
First merge of 2.064 beta.
This corresponds to DMD commit a913ce4bc59a94a022a27e390fc841f4aededffb. Doesn't build Phobos yet.
This commit is contained in:
committed by
Kai Nacke
parent
c400d180d2
commit
cb341586e3
@@ -11,6 +11,8 @@
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
|
||||
#include "port.h"
|
||||
|
||||
/*********************************************
|
||||
* Convert from named entity to its encoding.
|
||||
* For reference:
|
||||
@@ -2372,7 +2374,7 @@ static NameId* namesTable[] = {
|
||||
namesS, namesT, namesU, namesV, namesW, namesX, namesY, namesZ, NULL
|
||||
};
|
||||
|
||||
int HtmlNamedEntity(unsigned char *p, size_t length)
|
||||
int HtmlNamedEntity(utf8_t *p, size_t length)
|
||||
{
|
||||
int tableIndex = tolower(*p) - 'a';
|
||||
if (tableIndex >= 0 && tableIndex < 26)
|
||||
|
||||
Reference in New Issue
Block a user