Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: How i can take a substring?  (Read 1712 times)

0 Members and 2 Guests are viewing this topic.

dkaip

  • Newbie
  • *
  • Posts: 32
    • View Profile
How i can take a substring?
« on: March 11, 2010, 10:51:47 am »
Hello.
I am looking for new_text=text.substr(from, number of chars ...)

Is there a such function?

model76

  • Full Member
  • ***
  • Posts: 231
    • View Profile
How i can take a substring?
« Reply #1 on: March 11, 2010, 11:41:35 am »
In SFML 1 there are no string operations. You should use std::string for that. I am not sure if SFML 2 will have it, though.

Tank

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1486
    • View Profile
    • Blog
    • Email
How i can take a substring?
« Reply #2 on: March 13, 2010, 02:06:18 pm »
SFML2 hasn't got such a function, yet. However, you can write a little workaround if you need it.

 

anything