PureBasic
PureBasic
Remove Accent Marks from Chars in String
Removes the accent marks from Latin and Central European chars in a string.Note: The RemoveAccents method was added in Chilkat v9.5.0.91. This example requires Chilkat v9.5.0.91 or greater.
Chilkat PureBasic Downloads
IncludeFile "CkStringBuilder.pb"
Procedure ChilkatExample()
success.i = 0
s.s = "Números para Mí (Student Edition, Spanish)"
sb.i = CkStringBuilder::ckCreate()
If sb.i = 0
Debug "Failed to create object."
ProcedureReturn
EndIf
success = CkStringBuilder::ckAppend(sb,s)
CkStringBuilder::ckRemoveAccents(sb)
Debug CkStringBuilder::ckGetAsString(sb)
; Output:
; Numeros para Mi (Student Edition, Spanish)
CkStringBuilder::ckDispose(sb)
ProcedureReturn
EndProcedure