Sous chaque méthode, ses extensions (Q CS XT Z ZZ IB W U) : en gras et cochée, elle existe ; barrée, elle n'existe pas. Les extensions et leur sens
Exemples : 0 viennent des tests de la bibliothèque ; 6 ont été composés à partir de la signature de chaque méthode et exécutés pour cette page, sur un objet neuf, par exemple o1 = new stzStringReplacer("Hello 123 World 456"). 40 méthodes n'en ont pas encore. Exemples exécutés le 2026-10-03 12:54 dans la bibliothèque au commit 0e72e2e2c.
Méthode
Explication, telle que la source la porte
init
initializationaucune extension
Content
content accessaucune extension
NumberOfChars
content access
exemple composé
o1 = new stzStringReplacer("Hello 123 World 456")
? o1.NumberOfChars()
#--> 19composé à partir de la signature, exécuté pour cette page aucune extensionIsEmpty
content access
exemple composé
o1 = new stzStringReplacer("Hello 123 World 456")
? o1.IsEmpty()
#--> 0composé à partir de la signature, exécuté pour cette page aucune extensionReplace
replace -- all occurrencesQCSXTZZZIBWUMany
Replaced
replace -- all occurrencesQCSXTZZZIBWU
ReplaceByMany
Same as ReplaceByManyCS: ReplaceByMany: replace successive occurrences of pcSubStr with a list of distinct replacements; the i-th occurrence is replaced by the i-th entry in pacNewSubStr. If there are more occurrences than replacements the extras are left untouched. Ported from archive line 41947; uses This.FindCS to get positions and a tail-first replace so earlier offsets stay valid.QCSXTZZZIBWU
ReplaceNth
replace nth occurrenceQCSXTZZZIBWU
ReplaceFirst
replace first occurrenceQCSXTZZZIBWU
ReplaceLast
replace last occurrenceQCSXTZZZIBWU
Remove
remove -- allQCSXTZZZIBWUMany
Removed
remove -- allQCSXTZZZIBWU
RemoveNth
Same as RemoveNthCS: RemoveNthCS: engine-backed. The Zig implementation walks the byte stream in one pass and rebuilds the string without the Nth match -- no intermediate ReplaceNthCS allocation, no Haro-side loop. Case-sensitive only at present; the CS variant exists for naming consistency with the rest of the Remove* family. (Insensitive matching will route through StzEngineStringRemoveNthCI once it lands on the engine side; until then it falls back to ReplaceNthCS for pCaseSensitive=0.)QCSXTZZZIBWU
RemoveNthOccurrence
Softanza universal naming: RemoveNthOccurrence{,CS} are the long-form aliases. The "Engine"-flavoured form that used to exist (RemoveNthOccurrenceEngine) has been folded into RemoveNthCS itself -- callers should never need to know whether the work lives in Haro or Zig.QCSXTZZZIBWU
RemoveFirst
Same as RemoveFirstCS: Same as RemoveNthCS: RemoveNthCS: engine-backed. The Zig implementation walks the byte stream in one pass and rebuilds the string without the Nth match -- no intermediate ReplaceNthCS allocation, no Haro-side loop. Case-sensitive only at present; the CS variant exists for naming consistency with the rest of the Remove* family. (Insensitive matching will route through StzEngineStringRemoveNthCI once it lands on the engine side; until then it falls back to ReplaceNthCS for pCaseSensitive=0.)QCSXTZZZIBWU
RemoveLast
remove nth/first/lastQCSXTZZZIBWU
InsertBefore
insert before / afterQCSXTZZZIBWU
InsertAfter
insert before / afterQCSXTZZZIBWU
Surround
surroundQCSXTZZZIBWU
Surrounded
surround
exemple composé
o1 = new stzStringReplacer("Hello 123 World 456")
? o1.Surrounded("an", "an")
#--> anHello 123 World 456ancomposé à partir de la signature, exécuté pour cette page aucune extensionRemoveWhitespace
remove whitespace
exemple composé
o1 = new stzStringReplacer("Hello 123 World 456")
o1.RemoveWhitespace()
? o1.Content()
#--> Hello123World456composé à partir de la signature, exécuté pour cette page QCSXTZZZIBWUWhitespaceRemoved
remove whitespace
exemple composé
o1 = new stzStringReplacer("Hello 123 World 456")
? o1.WhitespaceRemoved()
#--> Hello123World456composé à partir de la signature, exécuté pour cette page aucune extensionSqueezeChar
squeeze charQCSXTZZZIBWU
CharSqueezed
squeeze charaucune extension
ReplaceCharCP
replace char (codepoint)QCSXTZZZIBWU
CharReplacedCP
replace char (codepoint)aucune extension
ReplaceAnyChar
replace any charQCSXTZZZIBWU
AnyCharReplaced
replace any charaucune extension
ReplaceAt
replace at positionQCSXTZZZIBWU
ReplaceBetween
replace between markersQCSXTZZZIBWU
BetweenReplaced
replace between markersaucune extension
ReplaceFirstBetween
replace first between markersQCSXTZZZIBWU
FirstBetweenReplaced
replace first between markersaucune extension
ReplaceSubstring
replace substring (range)QCSXTZZZIBWU
Replace2
replace two pairsQCSXTZZZIBWU
ReplaceCharAt
replace char at positionQCSXTZZZIBWU
CharReplacedAt
replace char at positionaucune extension
Spacify
spacifyQCSXTZZZIBWU
Spacified
spacify
exemple composé
o1 = new stzStringReplacer("Hello 123 World 456")
? o1.Spacified()
#--> H e l l o 1 2 3 W o r l d 4 5 6composé à partir de la signature, exécuté pour cette page aucune extensionStripMarks
strip marksQCSXTZZZIBWU
MarksStripped
strip marksaussi écrite: StrippedOfMarksaucune extension
ReplaceAllRegex
regex replace allQCSXTZZZIBWU
ReplaceRegex
regex replace allaucune extension
AllRegexReplaced
regex replace allaussi écrite: RegexReplacedaucune extension