Searched refs:encoding (Results 1 - 25 of 50) sorted by relevance

12

/osnet-11/usr/src/lib/libslp/javalib/com/sun/slp/
H A DIANACharCode.java27 // IANACharCode.java: SLPv1 Character encoding support
44 * encoding String arguments, and for encoding the String descriptions
54 // character encoding utilities. For Unicode, we use little on
87 * Encode the String describing a character encoding into
90 * @param encoding The String describing the encoding.
95 static int encodeCharacterEncoding(String encoding) argument
98 if (encoding.equals(ASCII)) {
100 } else if (encoding
159 escapeChar(char c, String encoding) argument
251 unescapeChar(String ch, String encoding) argument
[all...]
H A DSrvLocHeader.java390 // Parse string, bump byte count. Use UTF8 encoding.
403 // Convert it to the proper encoding. Return the raw bytes for
407 getStringField(StringBuffer buf, DataInputStream dis, String encoding) argument
428 buf.append(getBytesString(bytes, encoding));
434 // Parse out string, bump byte count. Use UTF8 encoding.
447 // into the proper encoding.
452 String encoding) {
454 byte[] bytes = getStringBytes(string, encoding);
456 // Put out the string's length in the encoding.
470 static byte[] getStringBytes(String string, String encoding) { argument
450 putStringField(String string, ByteArrayOutputStream baos, String encoding) argument
483 getBytesString(byte[] bytes, String encoding) argument
[all...]
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/ext/PerlIO/encoding/
H A Dencoding.pm1 package PerlIO::encoding;
8 # Equivalent of this is done in encoding.xs - do not uncomment.
22 PerlIO::encoding - encoding layer
26 open($f, "<:encoding(foo)", "infoo");
27 open($f, ">:encoding(bar)", "outbar");
30 $PerlIO::encoding::fallback = FB_PERLQQ;
34 Open a filehandle with a transparent encoding filter.
37 character set and encoding to Perl string data (Unicode and
38 Perl's internal Unicode encoding, UT
[all...]
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/lib/DBM_Filter/
H A Dencode.pm22 my $encoding = Encode::find_encoding($encoding_name) ;
25 unless $encoding;
29 $_ = $encoding->encode($_)
33 $_ = $encoding->decode($_)
55 This DBM filter allows you to choose the character encoding will be
60 where "ENCODING" must be a valid encoding name that the Encode module
73 The encoding requested is not supported by the Encode module.
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/ext/Encode/lib/Encode/
H A DEncoder.pm24 or croak __PACKAGE__, ": unknown encoding: $encname";
29 encoding => $encname,
46 sub encoding{ subroutine
50 or confess __PACKAGE__, ": unknown encoding: $encname";
51 $self->{encoding} = $obj->name;
54 return $self->{encoding}
60 $encname ||= $self->{encoding};
62 or confess __PACKAGE__, ": unknown encoding: $encname";
64 $self->{encoding} = '' ;
79 or confess __PACKAGE__, ": unknown encoding
[all...]
H A DEncoding.pm25 eval{ require PerlIO::encoding };
71 implementation at least) defined as objects. The mapping of encoding
138 If you want your encoding to work with L<encoding> pragma, you should
164 MUST return the string representing the canonical name of the encoding.
172 This method reconstructs the encoding object if necessary. If you need
173 to store the state during encoding, this is where you clone your object.
187 encoding object.
194 eval{ require PerlIO::encoding };
198 If your encoding doe
[all...]
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/ext/Encode/t/
H A DMod_EUCJP.pm4 use encoding "euc-jp";
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/ext/Encode/
H A Dencoding.pm1 # $Id: encoding.pm,v 1.48 2003/12/29 02:47:16 dankogai Exp dankogai $
2 package encoding; package
12 Carp::croak("encoding pragma does not support EBCDIC platforms");
17 eval { require PerlIO::encoding };
19 $HAS_PERLIO = (PerlIO::encoding->VERSION >= 0.02);
41 Carp::croak("Unknown encoding '$name'");
71 Carp::croak("Unknown encoding for $h, '$arg{$h}'");
73 eval { binmode($h, ":raw :encoding($arg{$h})") };
78 binmode($h, ":raw :encoding($name)");
112 encoding
[all...]
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/ext/Encode/lib/Encode/MIME/
H A DHeader.pm11 decode_b => '1', # decodes 'B' encoding ?
12 decode_q => '1', # decodes 'Q' encoding ?
53 ([0-9A-Za-z\-_]+) # charset (encoding)
65 croak qq(MIME "$2" encoding is nonexistent!);
74 my $d = find_encoding($enc) or croak qq(Unknown encoding "$enc");
82 my $d = find_encoding($enc) or croak qq(Unknown encoding "$enc");
98 (?:[0-9A-Za-z\-_]+) # charset (encoding)
179 Encode::MIME::Header -- MIME 'B' and 'Q' header encoding
190 variant encoding names; C<MIME-Header>, C<MIME-B> and C<MIME-Q>. The
201 When you decode(=?I<encoding>
[all...]
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/ext/PerlIO/t/
H A Dfallback.t21 # $PerlIO::encoding = 0; # WARN_ON_ERR|PERLQQ;
28 $PerlIO::encoding::fallback = Encode::PERLQQ;
29 ok(open(my $fh,">encoding(iso-8859-1)",$file),"opened iso-8859-1 file");
41 $PerlIO::encoding::fallback = Encode::HTMLCREF;
43 ok(open(my $fh,">encoding(iso-8859-1)",$file),"opened iso-8859-1 file");
61 ok(open($fh,"<encoding(US-ASCII)",$file),"Opened as ASCII");
67 $PerlIO::encoding::fallback = Encode::WARN_ON_ERROR;
69 ok(open($fh,"<encoding(US-ASCII)",$file),"Opened as ASCII");
H A Dencoding.t36 open(my $i,'<:encoding(iso-8859-7)',$grk);
63 open(my $o,'>:encoding(iso-8859-7)',$grk);
80 if (open(FAIL, ">:encoding(NoneSuch)", $fail1)) {
87 } elsif ($warn =~ /^Cannot find encoding "NoneSuch" at/) {
101 binmode(RUSSKI, ":encoding(koi8-r)");
123 if (open(FAIL, ">:encoding(latin42)", $fail2)) {
130 } elsif ($warn =~ /^Cannot find encoding "latin42" at.*line \d+\.$/) {
147 open(F,'<:encoding(utf-8)',$threebyte) || die "Cannot open $threebyte:$!";
/osnet-11/usr/src/grub/grub2/grub-core/gnulib/
H A Dmbrtowc.c128 const char *encoding = locale_charset (); local
130 if (STREQ (encoding, "UTF-8", 'U', 'T', 'F', '-', '8', 0, 0, 0, 0))
187 if (STREQ (encoding, "EUC-JP", 'E', 'U', 'C', '-', 'J', 'P', 0, 0, 0))
210 if (STREQ (encoding, "EUC-KR", 'E', 'U', 'C', '-', 'K', 'R', 0, 0, 0)
211 || STREQ (encoding, "GB2312", 'G', 'B', '2', '3', '1', '2', 0, 0, 0)
212 || STREQ (encoding, "BIG5", 'B', 'I', 'G', '5', 0, 0, 0, 0, 0))
223 if (STREQ (encoding, "EUC-TW", 'E', 'U', 'C', '-', 'T', 'W', 0, 0, 0))
241 if (STREQ (encoding, "GB18030", 'G', 'B', '1', '8', '0', '3', '0', 0, 0))
274 if (STREQ (encoding, "SJIS", 'S', 'J', 'I', 'S', 0, 0, 0, 0, 0))
287 /* An unknown multibyte encoding
[all...]
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/lib/
H A Dopen.pm55 croak "Locale encoding 'euc' too ambiguous";
70 if ($type =~ /^:?(utf8|locale|encoding\(.+\))$/) {
86 (warnings::warnif("layer", "Cannot figure out an encoding to use"), last)
91 $layer = "encoding($locale_encoding)";
152 use open IO => ":encoding(iso-8859-7)";
158 use open ':encoding(iso-8859-7)';
181 If you have a legacy encoding, you can use the C<:encoding(...)> tag.
183 if you want to set your encoding layers based on your
209 use open ':encoding(is
[all...]
H A Dbytes.pm54 being of a particular character encoding). When C<use bytes> is in
55 effect, the encoding is temporarily ignored, and each string is treated
62 up the UTF8 encoding - and C<length $x> returns C<2>:
H A Dutf8.pm54 in future we would like to standardize on the UTF-8 encoding for
63 pragma or the L</encoding> pragma should be used to recognize UTF-8
95 use the L</encoding> pragma instead of this pragma. For example, if
99 use encoding "latin-1";
103 In case you are wondering: yes, C<use encoding 'utf8';> works much
122 byte encoding to Unicode: use Encode for that. Affected by the
123 encoding pragma.
133 byte encoding: use Encode for that. B<Not> affected by the encoding
139 in Perl's I<UTF-X> encoding
[all...]
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/t/io/
H A Dlayers.t117 binmode(F, ":encoding(sjis)"); # "sjis" will be canonized to "shiftjis"
120 [ qw[stdio crlf encoding(shiftjis) utf8] ],
121 ":encoding(sjis)");
147 binmode(F, ":encoding(utf8)");
150 [ qw[stdio encoding(utf8) utf8] ],
151 ":encoding(utf8)");
159 binmode(F, ":raw :encoding(latin1)"); # "latin1" will be canonized
170 "encoding", "iso-8859-1", sub { $_[0] & PerlIO::F_UTF8() } ],
171 ":raw:encoding(latin1)");
183 use open(IN => ":crlf", OUT => ":encoding(cp125
[all...]
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/ext/Encode/TW/
H A DTW.pm34 big5-eten /\bbig-?5$/i Big5 encoding (with ETen extensions)
57 Since the original C<big5> encoding (1984) is not supported anywhere
63 The C<CNS11643> encoding files are not complete. For common C<CNS11643>
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/ext/Encode/bin/
H A Dpiconv69 binmode(STDIN, ":encoding($from)");
70 binmode(STDOUT, ":encoding($to)");
101 resolve encoding to its (Encode) canonical name
128 piconv -r encoding
134 B<piconv> is perl version of B<iconv>, a character encoding converter
139 piconv converts the character encoding of either STDIN or files
149 Specifies the encoding you are converting from. Unlike B<iconv>,
154 Specifies the encoding you are converting to. Unlike B<iconv>,
H A Denc2xs42 # For a single byte encoding it's the only "do_next" - each "do_now" points
45 # For a multi-byte encoding where all characters in the input are the same
52 # For an encoding where there are varaible length input byte sequences, you
66 # for each input byte. Say we are mapping a single byte encoding to a
67 # single byte encoding, with "ABCD" going "abcd". There will be
134 # -n <name> to name the encoding (else use the basename of the input file.
206 my %encoding;
254 foreach my $name (sort cmp_name keys %encoding)
256 my ($e2u,$u2e,$erep,$min_el,$max_el) = @{$encoding{$name}};
264 foreach my $name (sort cmp_name keys %encoding)
[all...]
/osnet-11/usr/src/lib/libfru/libfruraw/
H A Dfru_access_impl.h102 sectencoding_t encoding; member in struct:__anon1679
170 sectencoding_t encoding; /* standard or needing interpretation */ member in struct:__anon1686
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/ext/MIME/Base64/
H A DQuotedPrint.pm37 quoted-printable encoding specified in RFC 2045 - I<MIME (Multipurpose
38 Internet Mail Extensions)>. The quoted-printable encoding is intended
85 encoding is only defined for single-byte characters. The solution is to use the Encode
86 module to select the byte encoding you want. For example:
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/ext/Encode/lib/Encode/Unicode/
H A DUTF7.pm82 Encode::Unicode::UTF7 -- UTF-7 encoding
92 This module implements UTF-7 encoding documented in RFC 2152. UTF-7,
/osnet-11/usr/src/grub/grub2/grub-core/kern/ieee1275/
H A Dopenfw.c443 char *encoding; local
453 encoding = grub_xasprintf ("ieee1275/%s,%d", device, partno);
456 encoding = grub_strdup (device);
461 return encoding;
/osnet-11/usr/src/lib/libsqlite/src/
H A Dencode.c50 ** To minimize the encoding size, we first add a fixed offset value to each
65 ** Here, then, are the encoding steps:
170 ** This routine reverses the encoding created by sqlite_encode_binary().
173 ** encoding, -1 is returned.
252 fprintf(stderr,"Finished. Total encoding: %d->%d bytes\n",
/osnet-11/usr/src/grub/grub2/grub-core/term/
H A Dterminfo.c644 int encoding = GRUB_TERM_CODE_TYPE_ASCII;
652 encoding = GRUB_TERM_CODE_TYPE_ASCII;
655 encoding = GRUB_TERM_CODE_TYPE_UTF8_LOGICAL;
658 encoding = GRUB_TERM_CODE_TYPE_UTF8_VISUAL;
679 cur->flags = (cur->flags & ~GRUB_TERM_CODE_TYPE_MASK) | encoding;
643 int encoding = GRUB_TERM_CODE_TYPE_ASCII; local

Completed in 111 milliseconds

12