GRAYBYTE WORDPRESS FILE MANAGER2793

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /usr/lib64/perl5/vendor_perl/Encode/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /usr/lib64/perl5/vendor_perl/Encode//encode.h
#ifndef ENCODE_H
#define ENCODE_H

#ifndef H_PERL
/* check whether we're "in perl" so that we can do data parts without
   getting extern references to the code parts
*/
typedef unsigned char U8;
#endif

typedef struct encpage_s encpage_t;

struct encpage_s
{
    /* fields ordered to pack nicely on 32-bit machines */
    const U8 *const seq;   /* Packed output sequences we generate 
                  if we match */
    const encpage_t *const next;      /* Page to go to if we match */
    const U8   min;        /* Min value of octet to match this entry */
    const U8   max;        /* Max value of octet to match this entry */
    const U8   dlen;       /* destination length - 
                  size of entries in seq */
    const U8   slen;       /* source length - 
                  number of source octets needed */
};

/*
  At any point in a translation there is a page pointer which points
  at an array of the above structures.

  Basic operation :
  get octet from source stream.
  if (octet >= min && octet < max) {
    if slen is 0 then we cannot represent this character.
    if we have less than slen octets (including this one) then 
      we have a partial character.
    otherwise
      copy dlen octets from seq + dlen*(octet-min) to output
      (dlen may be zero if we don't know yet.)
      load page pointer with next to continue.
      (is slen is one this is end of a character)
      get next octet.
  }
  else {
    increment the page pointer to look at next slot in the array
  }

  arrays SHALL be constructed so there is an entry which matches
  ..0xFF at the end, and either maps it or indicates no
  representation.

  if MSB of slen is set then mapping is an approximate "FALLBACK" entry.

*/


typedef struct encode_s encode_t;
struct encode_s
{
    const encpage_t *const t_utf8;  /* Starting table for translation from 
                       the encoding to UTF-8 form */
    const encpage_t *const f_utf8;  /* Starting table for translation 
                       from UTF-8 to the encoding */
    const U8 *const rep;            /* Replacement character in this
                       encoding e.g. "?" */
    int        replen;              /* Number of octets in rep */
    U8         min_el;              /* Minimum octets to represent a
                       character */
    U8         max_el;              /* Maximum octets to represent a
                       character */
    const char *const name[2];      /* name(s) of this encoding */
};

#ifdef H_PERL
/* See comment at top of file for deviousness */

extern int do_encode(const encpage_t *enc, const U8 *src, STRLEN *slen,
                     U8 *dst, STRLEN dlen, STRLEN *dout, int approx,
             const U8 *term, STRLEN tlen);

extern void Encode_DefineEncoding(encode_t *enc);

#endif /* H_PERL */

#define ENCODE_NOSPACE  1
#define ENCODE_PARTIAL  2
#define ENCODE_NOREP    3
#define ENCODE_FALLBACK 4
#define ENCODE_FOUND_TERM 5

/* Use the perl core value if available; it is portable to EBCDIC */
#ifdef REPLACEMENT_CHARACTER_UTF8
#  define FBCHAR_UTF8		REPLACEMENT_CHARACTER_UTF8
#else
#  define FBCHAR_UTF8           "\xEF\xBF\xBD"
#endif

#define  ENCODE_DIE_ON_ERR     0x0001 /* croaks immediately */
#define  ENCODE_WARN_ON_ERR    0x0002 /* warn on error; may proceed */
#define  ENCODE_RETURN_ON_ERR  0x0004 /* immediately returns on NOREP */
#define  ENCODE_LEAVE_SRC      0x0008 /* $src updated unless set */
#define  ENCODE_PERLQQ         0x0100 /* perlqq fallback string */
#define  ENCODE_HTMLCREF       0x0200 /* HTML character ref. fb mode */
#define  ENCODE_XMLCREF        0x0400 /* XML  character ref. fb mode */
#define  ENCODE_STOP_AT_PARTIAL 0x0800 /* stop at partial explicitly */

#define  ENCODE_FB_DEFAULT     0x0000
#define  ENCODE_FB_CROAK       0x0001
#define  ENCODE_FB_QUIET       ENCODE_RETURN_ON_ERR
#define  ENCODE_FB_WARN        (ENCODE_RETURN_ON_ERR|ENCODE_WARN_ON_ERR)
#define  ENCODE_FB_PERLQQ      (ENCODE_PERLQQ|ENCODE_LEAVE_SRC)
#define  ENCODE_FB_HTMLCREF    (ENCODE_HTMLCREF|ENCODE_LEAVE_SRC)
#define  ENCODE_FB_XMLCREF     (ENCODE_XMLCREF|ENCODE_LEAVE_SRC)

#endif /* ENCODE_H */

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
March 05 2024 23:47:46
root / root
0755
CN
--
March 03 2024 19:11:18
root / root
0755
JP
--
March 03 2024 19:11:18
root / root
0755
KR
--
March 03 2024 19:11:18
root / root
0755
MIME
--
March 03 2024 19:11:18
root / root
0755
Unicode
--
March 03 2024 19:11:18
root / root
0755
Alias.pm
12.251 KB
February 21 2018 12:14:37
root / root
0644
Byte.pm
2.373 KB
February 21 2018 12:14:33
root / root
0644
CJKConstants.pm
1.644 KB
February 21 2018 12:14:37
root / root
0644
CN.pm
1.994 KB
February 21 2018 12:14:33
root / root
0644
Changes.e2x
0.175 KB
February 21 2018 12:14:37
root / root
0644
Config.pm
5.923 KB
February 21 2018 12:14:37
root / root
0644
ConfigLocal_PM.e2x
0.18 KB
November 11 2011 15:43:59
root / root
0644
EBCDIC.pm
0.845 KB
February 21 2018 12:14:35
root / root
0644
Encoder.pm
6.168 KB
February 21 2018 12:14:37
root / root
0644
Encoding.pm
8.851 KB
February 21 2018 12:14:37
root / root
0644
GSM0338.pm
11.601 KB
February 21 2018 12:14:37
root / root
0644
Guess.pm
9.876 KB
February 21 2018 12:14:37
root / root
0644
JP.pm
2.619 KB
February 21 2018 12:14:37
root / root
0644
KR.pm
1.914 KB
February 21 2018 12:14:37
root / root
0644
Makefile_PL.e2x
5.047 KB
May 31 2014 11:57:41
root / root
0644
PerlIO.pod
5.918 KB
November 11 2011 15:43:59
root / root
0644
README.e2x
0.54 KB
November 11 2011 15:43:59
root / root
0644
Supported.pod
28.059 KB
March 11 2016 05:13:47
root / root
0644
Symbol.pm
0.827 KB
February 21 2018 12:14:37
root / root
0644
TW.pm
2.238 KB
February 21 2018 12:14:37
root / root
0644
Unicode.pm
8.719 KB
February 21 2018 12:14:37
root / root
0644
_PM.e2x
0.244 KB
November 11 2011 15:43:59
root / root
0644
_T.e2x
0.147 KB
October 26 2016 22:32:38
root / root
0644
encode.h
4.047 KB
February 08 2018 00:21:55
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF