function SearchAndReplace
(sSrc, sLookFor, sReplaceWith : string) : string;
var
nPos, nLenLookFor : integer;
begin
nPos := Pos(sLookFor, sSrc);
nLenLookFor := Length(sLookFor);
while (nPos > 0) do begin
Delete(sSrc, nPos, nLenLookFor);
Insert(sReplaceWith, sSrc, nPos);
nPos := Pos(sLookFor, sSrc);
end;
Result := sSrc;
end;
Blog sur la conception, développement et le génie logiciel. Divers langages et systèmes d'exploitations sont traités.
lundi 29 janvier 2001
Comment chercher et remplacer des caractères?
Comment chercher et remplacer des caractères?
Inscription à :
Publier les commentaires (Atom)
Migration d’une application Spring Boot 2.2 vers Spring Boot 4.0 : retour d’expérience concret
En 2019, nous avons développé une application métier basée sur : Java 8 Spring Boot 2.2.7 Gradle 6.6.1 Thymeleaf Boots...
Aucun commentaire:
Enregistrer un commentaire