|
Ruby 4.0.7p0 (2026-09-15 revision 229531a6cfbf07e3caef30dbac24a2a3f3fed482)
|
Ruby's String. More...
#include <rstring.h>
Data Structures | |
| union | [union].as |
| String's specific fields. More... | |
Data Fields | |
| struct RBasic | basic |
| Basic part, including flags and class. | |
| long | len |
| Length of the string, not including terminating NUL character. | |
| union | as |
Ruby's String.
A string in ruby conceptually has these information:
It is worth noting that a string is not an array of characters in ruby. It has never been. In 1.x a string was an array of integers. Since 2.x a string is no longer an array of anything. A string is a string – just like a Time is not an integer.
| struct RBasic RString::basic |
| long RString::len |