upgrade libHaru to 2.3.0; make UTF-8 encoding default; some internal modifications and fixes

This commit is contained in:
Alex Fabijanic
2017-11-21 20:42:14 -06:00
parent 1724e8ba53
commit e067b19903
100 changed files with 8241 additions and 1179 deletions

View File

@@ -1,7 +1,10 @@
/*
* << Haru Free PDF Library 2.0.0 >> -- hpdf_encoder_jp.c
* << Haru Free PDF Library >> -- hpdf_encoder_jp.c
*
* URL: http://libharu.org
*
* Copyright (c) 1999-2006 Takeshi Kanno <takeshi_kanno@est.hi-ho.ne.jp>
* Copyright (c) 2007-2009 Antony Dovgal <tony@daylessday.org>
*
* Permission to use, copy, modify, distribute and sell this software
* and its documentation for any purpose is hereby granted without fee,
@@ -15769,6 +15772,7 @@ static HPDF_BOOL
RKSJ_IsLeadByte (HPDF_Encoder encoder,
HPDF_BYTE b)
{
HPDF_UNUSED (encoder);
return ((b >= 0x81 && b <= 0x9f) || (b >= 0xe0 && b <= 0xfc));
}
@@ -15777,6 +15781,7 @@ static HPDF_BOOL
RKSJ_IsTrialByte (HPDF_Encoder encoder,
HPDF_BYTE b)
{
HPDF_UNUSED (encoder);
return (b >= 0x40 && b <= 0xfc && b != 0x7f);
}
@@ -15950,6 +15955,7 @@ static HPDF_BOOL
EUC_IsLeadByte (HPDF_Encoder encoder,
HPDF_BYTE b)
{
HPDF_UNUSED (encoder);
return ((b >= 0xa1 && b <= 0xfe) || b == 0x8e);
}
@@ -15958,6 +15964,7 @@ static HPDF_BOOL
EUC_IsTrialByte (HPDF_Encoder encoder,
HPDF_BYTE b)
{
HPDF_UNUSED (encoder);
return (b >= 0xa0 && b <= 0xfe);
}