Autor Tema: Special characters in strings  (Leído 3379 veces)

0 Usuarios y 2 Visitantes están viendo este tema.

Desconectado Sandman

  • Sr. Member
  • ****
  • Mensajes: 298
  • Karma: 48
  • Sexo: Masculino
    • Ver Perfil
Special characters in strings
« en: Noviembre 26, 2007, 11:58:20 am »
I'd like to suggest special characters (\r, \n, \0, \\, etc) in strings.

"Hello.\n" would be the same as "Hello."+chr(10)

This brings a different way of string interpretation, as character escaping would also be useful, so it won't be fully compatible with Fenix code (the '\' char in Fenix is just a '\'). Perhaps have it as a bgdc.exe parameter again.

Another thing to consider is the way \n behaves. It's also possible to have its meaning depending on the OS (so on Windows it's CR+LF and on Unix it's only LF).

Well just an idea, but perhaps it's more work than it's worth.
-- Sandman

Desconectado SplinterGU

  • Hero Member
  • *****
  • Mensajes: 12426
  • Karma: 366
  • Sexo: Masculino
    • Ver Perfil
Re: Special characters in strings
« Respuesta #1 en: Diciembre 26, 2008, 05:34:08 pm »
maybe...
Download Lastest BennuGD Release: http://www.bennugd.org/node/2

Conectado JaViS

  • Global Moderator
  • Hero Member
  • *****
  • Mensajes: 1112
  • Karma: 19
  • Sexo: Masculino
    • Ver Perfil
    • Anarkade
Re:Special characters in strings
« Respuesta #2 en: Agosto 08, 2012, 03:31:36 pm »
+1  :)
Working on Anarkade. A couch multiplayer 2D shooter.