Searched refs:encoding (Results 1 - 25 of 1375) sorted by path

1234567891011>>

/external/antlr/antlr-3.4/lib/
H A Dantlr-3.4-complete.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/antlr/ org/antlr/analysis/ org/antlr/codegen/ org/ ...
/external/antlr/antlr-3.4/runtime/ActionScript/project/lib/
H A DFlexAntTasks.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/adobe/ com/adobe/ac/ com/adobe/ac/ant/ ...
/external/antlr/antlr-3.4/runtime/ActionScript/project/src/org/antlr/runtime/
H A DANTLRFileStream.as10 public function ANTLRFileStream(file:File, encoding:String = null) {
11 load(file, encoding);
14 public function load(file:File, encoding:String = null):void {
16 if (encoding == null) {
17 encoding = File.systemCharset;
24 data = stream.readMultiByte(file.size, encoding);
H A DDFA.as178 /** Given a String that has a run-length-encoding of some unsigned shorts
/external/antlr/antlr-3.4/runtime/C/include/
H A Dantlr3defs.h65 // Definitions that indicate the encoding scheme character streams and strings etc
75 /// General latin-1 or other 8 bit encoding scheme such as straight ASCII
79 /// UTF-8 encoding scheme
83 /// UTF-16 encoding scheme (which also covers UCS2 as that does not have surrogates)
89 /// UTF-32 encoding scheme (basically straight 32 bit)
559 ANTLR3_API pANTLR3_INPUT_STREAM antlr3FileStreamNew (pANTLR3_UINT8 fileName, ANTLR3_UINT32 encoding);
560 ANTLR3_API pANTLR3_INPUT_STREAM antlr3StringStreamNew (pANTLR3_UINT8 data, ANTLR3_UINT32 encoding, ANTLR3_UINT32 size, pANTLR3_UINT8 name);
564 ANTLR3_API pANTLR3_STRING_FACTORY antlr3StringFactoryNew (ANTLR3_UINT32 encoding);
H A Dantlr3input.h3 * streams from any input source. Any character size and encoding
70 * taken as offsets from here and in original input format encoding.
85 * This is cast to point at the encoding of the original file that
168 * memory and is in same encoding as the input stream itself, NOT internal ANTLR3_UCHAR form.
232 /// Indicates the encoding scheme used in this input stream
234 ANTLR3_UINT32 encoding; member in struct:ANTLR3_INPUT_STREAM_struct
246 * This is cast to point at the encoding of the original file that
H A Dantlr3string.h78 /** Occasionally it is useful to know what the encoding of the string
81 ANTLR3_UINT8 encoding; member in struct:ANTLR3_STRING_struct
83 /** Pointer to function that sets the string value to a specific string in the default encoding
85 * but if the encoding is UTF16, then the pointer is assumed to point to UTF16 characters, not
90 /** Pointer to function that sets the string value to a specific 8 bit string in the default encoding
92 * but if the encoding is UTF16, then the pointer is assumed to point to 8 bit characters that must
97 /** Pointer to function adds a raw char * type pointer in the default encoding
99 * but if the encoding is UTF16, then the pointer is assumed to point to UTF16 characters not
104 /** Pointer to function adds a raw char * type pointer in the default encoding
111 * offset in the current string in the default encoding fo
[all...]
/external/antlr/antlr-3.4/runtime/C/src/
H A Dantlr3filestream.c10 * encoding, though this is not a panacea. More information can be
13 * Where a well grounded discussion of the encoding formats available
54 antlr3FileStreamNew(pANTLR3_UINT8 fileName, ANTLR3_UINT32 encoding) argument
59 // as just straight 8 bit bytes. Then we will work out the encoding and
70 // the encoding scheme we were given by the user.
72 input->encoding = encoding;
89 antlr3StringStreamNew(pANTLR3_UINT8 data, ANTLR3_UINT32 encoding, ANTLR3_UINT32 size, pANTLR3_UINT8 name) argument
94 // Then we will work out the encoding and byte order and adjust the API functions that are installed for the
108 // the encoding schem
[all...]
H A Dantlr3inputstream.c122 /// that would not work for the particular input encoding, such as consume for instance.
129 input->strFactory = antlr3StringFactoryNew(input->encoding);
347 * \return Next input character in internal ANTLR3 encoding (UTF32)
374 * \return Next input character in internal ANTLR3 encoding (UTF32)
399 * \return Next input character in internal ANTLR3 encoding (UTF32)
680 * - The supplied newLineChar is in UTF32 encoding (which means ASCII and latin1 etc
697 /// tends to confuse the notions of character encoding, unicode and so on. UCS2 is
708 input->strFactory = antlr3StringFactoryNew(input->encoding);
854 /// \return Next input character in internal ANTLR3 encoding (UTF32)
1134 /// \return Next input character in internal ANTLR3 encoding (UTF3
[all...]
H A Dantlr3string.c98 antlr3StringFactoryNew(ANTLR3_UINT32 encoding) argument
134 switch(encoding)
265 string->encoding = ANTLR3_ENC_8BIT ;
302 string->encoding = ANTLR3_ENC_8BIT;
346 // a memcpy as we make no assumptions about the 8 bit encoding.
357 // UCS2 has the same encoding as UTF16 so we can use UTF16 converter.
1175 * (which is assumed to be in the same encoding as the string itself) and returns a result
1204 * (which is assumed to be in the same encoding as the string itself) and returns a result
1234 * (which is assumed to be in the same encoding as the string itself) and returns a result
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime.Tests/
H A DANTLRxxxxStreamFixture.cs66 Encoding encoding = Encoding.Unicode;
67 byte[] grammarStrBuffer = encoding.GetBytes(grammarStr);
70 ANTLRInputStream input = new ANTLRInputStream(grammarStream, encoding);
85 Encoding encoding = Encoding.Unicode;
86 byte[] grammarStrBuffer = encoding.GetBytes(grammarStr);
96 Encoding encoding = Encoding.Unicode;
97 byte[] grammarStrBuffer = encoding.GetBytes(grammarStr);
119 Encoding encoding = Encoding.Unicode;
120 byte[] grammarStrBuffer = encoding.GetBytes(grammarStr);
135 Encoding encoding
[all...]
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Debug/
H A DDebugEventSocketProxy.cs102 System.Text.UTF8Encoding encoding = new System.Text.UTF8Encoding();
103 socket.Send(encoding.GetBytes("ANTLR " + DebugEventListenerConstants.ProtocolVersion + "\n"));
104 socket.Send(encoding.GetBytes("grammar \"" + grammarFileName + "\n"));
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/
H A DANTLRFileStream.cs74 /// specified file name and encoding
76 public ANTLRFileStream(string fileName, Encoding encoding) argument
79 Load(fileName, encoding);
100 /// <param name="encoding">Encoding to apply to file</param>
101 public virtual void Load(string fileName, Encoding encoding) argument
112 if (encoding != null)
113 fr = new StreamReader(fileName, encoding);
H A DANTLRInputStream.cs53 public ANTLRInputStream(Stream input, Encoding encoding) argument
54 : this(input, InitialBufferSize, encoding) {
57 public ANTLRInputStream(Stream input, int size, Encoding encoding) argument
58 : this(input, size, ReadBufferSize, encoding) {
61 public ANTLRInputStream(Stream input, int size, int readBufferSize, Encoding encoding) argument
62 : base(GetStreamReader(input, encoding), size, readBufferSize) {
65 private static StreamReader GetStreamReader(Stream input, Encoding encoding) { argument
66 if (encoding != null)
67 return new StreamReader(input, encoding);
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Debug/
H A DDebugEventSocketProxy.cs109 System.Text.UTF8Encoding encoding = new System.Text.UTF8Encoding();
110 socket.Send( encoding.GetBytes( "ANTLR " + DebugEventListenerConstants.ProtocolVersion + "\n" ) );
111 socket.Send( encoding.GetBytes( "grammar \"" + grammarFileName + "\n" ) );
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/
H A DANTLRFileStream.cs57 public ANTLRFileStream( string fileName, Encoding encoding )
60 Load( fileName, encoding );
63 public virtual void Load( string fileName, Encoding encoding )
71 if (encoding == null)
74 text = File.ReadAllText(fileName, encoding);
H A DANTLRInputStream.cs57 public ANTLRInputStream( Stream input, Encoding encoding )
58 : this( input, InitialBufferSize, encoding )
62 public ANTLRInputStream( Stream input, int size, Encoding encoding )
63 : this( input, size, ReadBufferSize, encoding )
67 public ANTLRInputStream( Stream input, int size, int readBufferSize, Encoding encoding )
68 : base(GetStreamReader(input, encoding), size, readBufferSize)
72 private static StreamReader GetStreamReader(Stream input, Encoding encoding) argument
74 if (encoding != null)
75 return new StreamReader(input, encoding);
/external/antlr/antlr-3.4/runtime/Delphi/Sources/Antlr3.Runtime/
H A DAntlr.Runtime.pas1715 /// specified file name and encoding
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/
H A DANTLRFileStream.java45 public ANTLRFileStream(String fileName, String encoding) throws IOException { argument
47 load(fileName, encoding);
50 public void load(String fileName, String encoding) argument
60 if ( encoding!=null ) {
61 isr = new InputStreamReader(fis, encoding);
H A DANTLRInputStream.java47 public ANTLRInputStream(InputStream input, String encoding) throws IOException { argument
48 this(input, INITIAL_BUFFER_SIZE, encoding);
51 public ANTLRInputStream(InputStream input, int size, String encoding) throws IOException { argument
52 this(input, size, READ_BUFFER_SIZE, encoding);
58 String encoding)
62 if ( encoding!=null ) {
63 isr = new InputStreamReader(input, encoding);
55 ANTLRInputStream(InputStream input, int size, int readBufferSize, String encoding) argument
/external/antlr/antlr-3.4/runtime/JavaScript/src/org/antlr/runtime/
H A DANTLRFileStream.js8 * @param {String} [encoding] name of the charset used for decoding
10 org.antlr.runtime.ANTLRFileStream = function(fileName, encoding) {
24 var data = this[method](fileName, encoding);
43 * @param {String} [encoding] name of the charset used for decoding
46 loadFileUsingJava: function(fileName, encoding) {
52 if (encoding) {
53 isr = new java.io.InputStreamReader(fis, encoding);
/external/antlr/antlr-3.4/runtime/JavaScript/tests/functional/
H A Drhino-python.prog3 function loadFile(fileName, encoding) {
8 if (encoding) {
9 isr = new java.io.InputStreamReader(fis, encoding);
/external/antlr/antlr-3.4/runtime/ObjC/Framework/
H A DANTLRFileStream.h42 + (id) newANTLRFileStream:(NSString *)aFileName encoding:(NSStringEncoding)encoding;
44 - (id) init:(NSString *) aFileName encoding:(NSStringEncoding)encoding;
45 - (void) load:(NSString *)fileName encoding:(NSStringEncoding)encoding;
H A DANTLRFileStream.m47 + (id) newANTLRFileStream:(NSString *)aFileName encoding:(NSStringEncoding)encoding
49 return [[ANTLRFileStream alloc] init:aFileName encoding:encoding];
57 [self load:aFileName encoding:NSUTF8StringEncoding];
62 - (id) init:(NSString *) aFileName encoding:(NSStringEncoding)encoding
67 [self load:aFileName encoding:encoding];
77 - (void) load:(NSString *)aFileName encoding
[all...]
H A DANTLRInputStream.h13 NSStringEncoding encoding; variable
16 @property (assign) NSStringEncoding encoding; variable
21 + (id) newANTLRInputStream:(NSFileHandle *)anInput encoding:(NSStringEncoding)theEncoding;
25 encoding:(NSStringEncoding)theEncoding;
30 encoding:(NSStringEncoding)theEncoding;

Completed in 4878 milliseconds

1234567891011>>