shadokpp(nombre)
Func
Local i
For i,dim(nombre),1,-1
If mid(nombre,i,1)=" "
left(nombre,i-1)&right(nombre,dim(nombre)-i)->nombre
EndFor
While left(nombre,2)="ga"
right(nombre,dim(nombre)-2)->nombre
EndWhile
Return shadpp_r(nombre)
Func
shadpp_r(nombre)
Func
Lical i,chiffres
{"ga","bu","zo","meu"}->chiffres
For i,1,3
If right(nombre,2)=chiffres[i]
Exit
EndFor
If i!=4 Then
Return left(nombre,dim(nombre)-2)&chiffres[i+1]
ElseIf nombre="meu" Then
Return "buga"
Else
Return shadpp_r(left(nombre,dim(nombre)-3))&"ga"
EndIf
EndFunc
Note : évidemment, en TI-Basic, le signe
différent ne s'écrit pas
!=, mais bon

...
shadokpp("gagagameu gazobuga")
=> "meugazobubu"

Je ne suis pas développeur Java : je suis artiste Java.
Ce que l’on conçoit bien s’énonce clairement, / Et le code pour l’écrire arrive aisément.
Hâtez-vous lentement ; toujours, avec méthode, / Vingt fois dans l’IDE travaillez votre code.
La perfection est atteinte, non pas lorsqu’il n’y a plus rien à ajouter, mais lorsqu’il n’y a plus rien à retirer.
You don't use science to show that you're right, you use science to become right.