Searched refs:to_s (Results 1 - 25 of 40) sorted by relevance

12

/external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/template/
H A Dparameter.rb7 def to_s method in class:ANTLR3.Template.Parameter
26 names = map { | param | param.name.to_s }
27 @splat and names << @splat.to_s
28 @block and names << @block.to_s
36 else Parameter.new( name.to_s )
48 def to_s method in class:ANTLR3.Template.ParameterList
50 @splat and signature << ", *" << @splat.to_s
51 @block and signature << ", &" << @block.to_s
/external/antlr/antlr-3.4/runtime/Ruby/test/unit/
H A Dtest-template.rb26 vars = context.instance_variables.map { | i | i.to_s }
96 @group.template_defined?( name.to_s ).should be_true
110 @group.private_instance_methods.should include name.to_s
139 | <%= attribute( :name => attr, :access => ( access || 'rw' ) ).to_s.chomp %>
151 | % case @access.to_s.downcase
180 MethodDescription.new( :to_s, '@name.to_s.dup' )
190 vegetable.to_s.should == tidy( <<-END.chomp )
200 | def to_s
201 | @name.to_s
[all...]
H A Dtest-scope.rb16 @A.members.map( &:to_s ).should == %w( a b )
17 @B.members.map( &:to_s ).should == %w( count )
18 @C.members.map( &:to_s ).should == %w( a b c )
H A Dtest-tree-wizard.rb217 imap.map { |type, nodes| [type, nodes.map { |n| n.to_s }] }
255 elements << node.to_s
267 elements << node.to_s
279 elements << node.to_s
291 elements << node.to_s
298 '%s@%s[%d]' % [node.to_s, (parent || 'nil').to_s, index]
329 elements << node.to_s
348 suffix = names.map { |n| labels[n].to_s }.join('&')
349 '%s@%s[%d]%s' % [node.to_s, (paren
[all...]
/external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/
H A Dtemplate.rb127 erb.def_method( sclass, 'to_s' )
132 self::TEMPLATES.fetch( name.to_s ).new( values )
140 self::TEMPLATES.has_key?( name.to_s )
144 name = name.to_s.dup.freeze
147 ERB.new( source, nil, '%' ).def_method( tclass, 'to_s' )
155 new_name, old_name = new_name.to_s.dup.freeze, old_name.to_s
156 context = self::TEMPLATES.fetch( old_name.to_s ) do
189 end.to_s
203 TEMPLATES[ #{ name.inspect } ].new( values ).to_s
288 def to_s method in class:Parameter
325 def to_s method in class:ParameterList
[all...]
H A Dutil.rb10 str = str.to_s.gsub( /([A-Z]+)([A-Z][a-z])/,'\1_\2' )
71 raise TypeError, #{ message.to_s.inspect }
84 extra_message and message << '; ' << extra_message.to_s
H A Dtask.rb134 dir = options[ :output_directory ] and @output_directory = dir.to_s
143 else Shellwords.shellwords( opts.to_s )
148 else Shellwords.shellwords( opts.to_s )
220 token = token.to_s.dup
252 @path = path.to_s
429 @path = path.to_s
H A Dtoken.rb120 when Symbol then name == obj.to_s
186 channel == DEFAULT_CHANNEL or rep << " (#{ channel.to_s })"
202 def to_s method in class:ANTLR3.Token
203 text.to_s
564 name = name.to_s
606 name = name.to_s.freeze
625 token_names[ type_value ] = name.to_s.freeze
636 else const_defined?( name_or_value.to_s )
643 else const_get( name_or_value.to_s ) rescue token_names.index( name_or_value )
H A Ddot.rb66 def to_s method in class:ANTLR3.DOT.Context
114 return tree_template.to_s
/external/antlr/antlr-3.4/runtime/Ruby/test/functional/ast-output/
H A Dhetero-nodes.rb17 def to_s method in class:TestHeterogeneousNodeTypes.V
36 def to_s method in class:TestHeterogeneousNodeTypes.V
55 def to_s method in class:TestHeterogeneousNodeTypes.V
74 def to_s method in class:TestHeterogeneousNodeTypes.V
93 def to_s method in class:TestHeterogeneousNodeTypes.V
113 def to_s method in class:TestHeterogeneousNodeTypes.V
133 def to_s method in class:TestHeterogeneousNodeTypes.V
153 def to_s method in class:TestHeterogeneousNodeTypes.V
173 def to_s method in class:TestHeterogeneousNodeTypes.V
206 def to_s method in class:TestHeterogeneousNodeTypes.V
226 def to_s method in class:TestHeterogeneousNodeTypes.V
247 def to_s method in class:TestHeterogeneousNodeTypes.V
267 def to_s method in class:TestHeterogeneousNodeTypes.V
289 def to_s method in class:TestHeterogeneousNodeTypes.V
298 def to_s method in class:TestHeterogeneousNodeTypes.W
322 def to_s method in class:TestHeterogeneousNodeTypes.V
358 def to_s method in class:TestHeterogeneousNodeTypes.V
363 def to_s method in class:TestHeterogeneousNodeTypes.W
396 def to_s method in class:TestHeterogeneousNodeTypes.V
402 def to_s method in class:TestHeterogeneousNodeTypes.W
436 def to_s method in class:TestHeterogeneousNodeTypes.V
474 def to_s method in class:TestHeterogeneousNodeTypes.V
508 def to_s method in class:TestHeterogeneousNodeTypes.V
550 def to_s method in class:TestHeterogeneousNodeTypes.V
584 def to_s method in class:TestHeterogeneousNodeTypes.V
[all...]
/external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/debug/
H A Drecord-event-listener.rb20 event_message = event_message.to_s
H A Dtrace-event-listener.rb24 event_message = event_message.to_s << "\n"
/external/python/cpython3/Objects/stringlib/
H A Dtransmogrify.h238 const char *to_s, Py_ssize_t to_len,
278 memcpy(result_s, to_s, to_len);
284 memcpy(result_s, to_s, to_len);
289 result_s[0] = to_s[0];
294 result_s[0] = to_s[0];
453 const char *to_s, Py_ssize_t to_len,
484 memcpy(start, to_s, from_len);
494 memcpy(start + offset, to_s, from_len);
505 const char *to_s, Py_ssize_t to_len,
547 memcpy(result_s, to_s, to_le
237 stringlib_replace_interleave(PyObject *self, const char *to_s, Py_ssize_t to_len, Py_ssize_t maxcount) argument
451 stringlib_replace_substring_in_place(PyObject *self, const char *from_s, Py_ssize_t from_len, const char *to_s, Py_ssize_t to_len, Py_ssize_t maxcount) argument
503 stringlib_replace_single_character(PyObject *self, char from_c, const char *to_s, Py_ssize_t to_len, Py_ssize_t maxcount) argument
567 stringlib_replace_substring(PyObject *self, const char *from_s, Py_ssize_t from_len, const char *to_s, Py_ssize_t to_len, Py_ssize_t maxcount) argument
636 stringlib_replace(PyObject *self, const char *from_s, Py_ssize_t from_len, const char *to_s, Py_ssize_t to_len, Py_ssize_t maxcount) argument
[all...]
/external/robolectric-shadows/scripts/
H A Dinstall-dependencies.rb17 if group_id.to_s == '' || artifact_id.to_s == '' || version.to_s == '' || extension.to_s == ''
/external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/test/
H A Dfunctional.rb81 if g = grammars[ name.to_s ]
83 grammars.delete( name.to_s )
110 path = local_path( name.to_s )
H A Dgrammar.rb28 path = File.expand_path path.to_s
54 path = File.expand_path path.to_s
67 @path = path.to_s
239 token = token.to_s.dup
279 @source = source.to_s.fixed_indent( 0 )
295 previous, @path = @path, v.to_s
H A Dcore-extensions.rb6 File.join( self, subpath.to_s )
189 File.expand_path( path.to_s ).split( File::Separator ).tap do |list|
/external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/streams/
H A Dinteractive.rb41 line = line.to_s.encode( Encoding::UTF_8 )
77 @data << line.to_s
H A Drewrite.rb39 TokenRewriteStream is a specialized form of CommonTokenStream that provides simple stream editing functionality. By creating <i>rewrite programs</i>, new text output can be created based upon the tokens in the stream. The basic token stream itself is preserved, and text output is rendered on demand using the #to_s method.
111 buffer << text.to_s
113 buffer << token.text.to_s if token
146 buffer << text.to_s unless text.nil?
247 prior_operation.text = operation.text << prior_operation.text.to_s
370 else programs[ name.to_s ]
418 when String, Symbol then name = arguments.shift.to_s
/external/antlr/antlr-3.4/runtime/Ruby/test/functional/token-rewrite/
H A Dbasic.rb234 error.to_s.should == %q<operation (replace @ 1..2 : "foo") overlaps with previous operation (replace @ 0..3 : "bar")>
245 error.to_s.should == %q<operation (insert-before @ 4 : "y") overlaps with previous operation (replace @ 2..4 : "x")>
256 error.to_s.should == %q<operation (replace @ 3..5 : "foo") overlaps with previous operation (replace @ 2..4 : "xyz")>
267 error.to_s.should == %q<operation (replace @ 1..3 : "foo") overlaps with previous operation (replace @ 2..4 : "xyz")>
H A Dvia-parser.rb41 stat: ID '=' expr ';' {$body::decls << $ID.text.to_s}
/external/python/cpython2/Objects/
H A Dbytearrayobject.c1569 const char *to_s, Py_ssize_t to_len,
1609 Py_MEMCPY(result_s, to_s, to_len);
1615 Py_MEMCPY(result_s, to_s, to_len);
1770 const char *to_s, Py_ssize_t to_len,
1800 Py_MEMCPY(start, to_s, from_len);
1810 Py_MEMCPY(start+offset, to_s, from_len);
1821 const char *to_s, Py_ssize_t to_len,
1866 Py_MEMCPY(result_s, to_s, to_len);
1873 Py_MEMCPY(result_s, to_s, to_len);
1888 const char *to_s, Py_ssize_
1568 replace_interleave(PyByteArrayObject *self, const char *to_s, Py_ssize_t to_len, Py_ssize_t maxcount) argument
1768 replace_substring_in_place(PyByteArrayObject *self, const char *from_s, Py_ssize_t from_len, const char *to_s, Py_ssize_t to_len, Py_ssize_t maxcount) argument
1819 replace_single_character(PyByteArrayObject *self, char from_c, const char *to_s, Py_ssize_t to_len, Py_ssize_t maxcount) argument
1886 replace_substring(PyByteArrayObject *self, const char *from_s, Py_ssize_t from_len, const char *to_s, Py_ssize_t to_len, Py_ssize_t maxcount) argument
1958 replace(PyByteArrayObject *self, const char *from_s, Py_ssize_t from_len, const char *to_s, Py_ssize_t to_len, Py_ssize_t maxcount) argument
[all...]
/external/antlr/antlr-3.4/runtime/Ruby/test/functional/template-output/
H A Dtemplate-output.rb25 return( out ? out.to_s : out )
57 [<%= @args.join( @op.to_s ) %>]
181 [<%= @args.join( @op.to_s ) %>]
/external/antlr/antlr-3.4/runtime/Ruby/test/functional/parser/
H A Drule-methods.rb126 mname = RUBY_VERSION =~ /^1\.9/ ? proc { | n | n.to_sym } : proc { | n | n.to_s }
/external/protobuf/ruby/lib/google/protobuf/
H A Drepeated_field.rb78 :to_s, :transpose, :uniq, :|

Completed in 601 milliseconds

12