Creates a new String object with the same value as the specified string. 8
Crée un nouvel objet de chaîne avec la même valeur que la chaîne spécifiée. 8
A String object in Ruby holds and manipulates an arbitrary sequence of one or more bytes, typically representing characters that represent human language.
Un objet de chaîne en Ruby tient et manipule une séquence arbitraire d'un ou plusieurs octets, typiquement représentant des caractères qui représentent le langage humain.
Replaces all occurrences of a specified string in the current string object with the specified string and returns the new string.
Remplace toutes les occurrences d'une chaîne spécifiée dans l'objet chaîne courante avec la chaîne spécifiée et retourne la nouvelle chaîne.
For example, suppose that the $a variable has been assigned a string value, which means that the variable is associated with a string object.
Par exemple, supposez qu'une valeur de chaîne ait été affectée à la variable $a, ce qui signifie que la variable est associée à un objet chaîne.
Prototype enhances the String object with a series of useful methods ranging from the trivial to the complex.
Prototype améliore l'objet String avec une série de méthodes utiles allant du trivial au complexe.
The payload is a String object instead of a structure struct
Le payload se présente sous la forme d'un objet String au lieu d'une structure struct
Some operations may just be faster with a rope than with a String object.
Certaines opérations peuvent être plus rapides avec une corde qu'avec un objet String.
The following example displays the string value of a String object
Une chaîne de caractères qui représente la valeur primitive d'un objet String.
Splits a String object into an array of strings by separating the string into substrings.
Sépare un objet String en un tableau de chaînes en séparant la chaîne en sous-chaînes.
Returns a new String object with the replacements made.
Renvoie un nouvel objet String avec les remplacements effectués.
Returns a new String object containing the specified character set. concat()
Renvoie un nouvel objet String contenant l'ensemble des caractères spécifiés. concat()
Contenu potentiellement sensible ou inapproprié
Les exemples vous aident à traduire le mot ou l’expression cherchés dans des contextes variés. Ils ne sont ni sélectionnés ni validés par nous et peuvent contenir des mots ou des idées inappropriés. Signalez des exemples à modifier ou à retirer. Les traductions potentiellement sensibles, inappropriées ou familières sont généralement marquées de rouge ou d’orange.