We konden deze vermelding niet vinden. Er worden benaderende resultaten weergegeven. Controleer je spelling of stel voor deze term aan het woordenboek toe te voegen.
Un objeto String en Ruby sostiene y manipula una secuencia arbitraria de una o más bytes, por lo general en representación de caracteres que representan el lenguaje humano.
A String object in Ruby holds and manipulates an arbitrary sequence of one or more bytes, typically representing characters that represent human language.
Un objeto String tiene una propiedad, lenght, que inica el número de caracteres en la cadena.
A String object has one property, length, that indicates the number of UTF-16 code units in the string.
Un objeto String tiene una variedad de métodos: por ejemplo aquellos que devuelven una modificación de la misma cadena, tales como substring y toUpperCase.
A String object has a variety of methods: for example those that return a variation on the string itself, such as substring and toUpperCase.
Siempre que encuentre una cadena literal en su código, el compilador crea un objeto String con su valor en este caso, Hola, mundo!
Whenever it encounters a string literal in your code, the compiler creates a String object with its value in this case, Hello world!
Se debería utilizar literales de cadena a menos que específicamente sea necesario usar un objeto String, porque los objetos String pueden tener un comportamiento contraintuitivo.
You should use string literals unless you specifically need to use a String object, because String objects can have counterintuitive behavior.
En el siguiente ejemplo, el constructor String es especificado, y eval() devuelve un objeto String en lugar de evaluar la cadena de caracteres.
In the following example, the String constructor is specified, and eval returns a String object rather than evaluating the string.
Ya ha visto cómo crear una instancia de un objeto String y establecer su valor (en el Listado 5) pero existen varias otras formas de hacer eso.
You've already seen how to instantiate a String object and set its value (back in Listing 4), but you have several other ways to do that.
La propiedad length de un objeto String representa la longitud de una cadena, en unidades de código UTF-16.
The length property of a String object indicates the length of a string, in UTF-16 code units.
Tenga en cuenta que invocamos a path() en la instancia de NSURL resultante para asegurarnos de que devolvemos un objeto String. Guardar elementos
Note that we invoke path() on the resulting NSURL instance to make sure we return a String object.
La clase String es considerado como algo inmutable, por lo que una vez que se crea un objeto String no se puede cambiar.
Note - The String class is immutable, so that once it is created a String object cannot be changed.
Establecer una variable de tipo String tiene el mismo resultado porque el lenguaje Java crea un objeto String para tener el literal, luego asigna ese objeto a la variable de instancia. Concatenación de cadenas
Setting a variable of type String has the same result, because the Java language creates a String object to hold the literal, then assigns that object to the instance variable.
Potentieel gevoelige of ongepaste informatie
Er worden alleen voorbeelden gegeven om u te helpen het woord of de woordcombinatie waarop u hebt gezocht, te vertalen. Deze worden niet door ons geselecteerd of gevalideerd en kunnen ongepaste taal bevatten. Wij vragen u melding te maken van voorbeelden die dienen te worden aangepast of verwijderd. Vertalingen met grof of informeel taalgebruik worden meestal rood of oranje gemarkeerd.