Help...Lib or function to replace String
Hi.
i´ve seen that font32 lib do not accept iso8859-1 chars like ç... i would need some code help to create a function to replace a string..something like: str1:="nice day ç"; newstr:=integerToString((CHR(231)); string_replace (str1,"ç",newstr); any ideias or code samples??? thanks, |
Ответ: Help...Lib or function to replace String
you can use russian or for other symbols and replace them in font file *.png.
i made some smiles for chat in my game that way :) "костыль" |
Ответ: Help...Lib or function to replace String
Цитата:
but in that case i "lost" common chars like "abcdef..."; my ideia is: 1-create a txt file as resource 2- load it and create a function ( lib was better) that parse/replace all non readable chars in font32 lib and replace them with their CHR codes...i saw that if i use in font32 lib " some text"+chr(200) it works.... the lib / function would translate those chars that block the APP... thanks anyway |
Ответ: Help...Lib or function to replace String
you won't lose latin chars because you can replace only cyrilic.
i'm sure that you have russian layout in windows, so you can write them as yours. i mean you will replace russian 'с' with your 'з' in *.png file. after that you will still have english 'c' and if your own 'з' that must be mentioned in code as russian 'c'. sorry if my explaintion doesn't seem very clear. |
Ответ: Help...Lib or function to replace String
Код:
function repls(str, s1, s2 : string) : string; |
Ответ: Help...Lib or function to replace String
thanks for the code..
Цитата:
|
Ответ: Help...Lib or function to replace String
IntegerToString() ?
|
Часовой пояс GMT +4, время: 20:49. |
vBulletin® Version 3.6.5.
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Перевод: zCarot