Skip to content

Commit

Permalink
Make most of ddmd.entity private
Browse files Browse the repository at this point in the history
  • Loading branch information
yebblies committed Oct 9, 2015
1 parent a987140 commit 9aa6464
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/entity.d
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ module ddmd.entity;

import core.stdc.ctype;

private:

/*********************************************
* Convert from named entity to its encoding.
* For reference:
Expand Down Expand Up @@ -2371,7 +2373,7 @@ immutable NameId[][] namesTable =
namesS, namesT, namesU, namesV, namesW, namesX, namesY, namesZ
];

extern (C++) int HtmlNamedEntity(const(char)* p, size_t length)
public int HtmlNamedEntity(const(char)* p, size_t length)
{
int tableIndex = tolower(*p) - 'a';
if (tableIndex >= 0 && tableIndex < 26)
Expand Down

0 comments on commit 9aa6464

Please sign in to comment.