|
|||||||
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Jul 2009
Posts: 879
Reputation: 57
|
strlib - v1.3
Missed PHP's excellent string modification functions? Yeah, but that was because it was easy. I decided to create a string include that is stand alone - each function works in or out of the include - no dependencies apart from the core supplied files. But why? Because I can, and I wanted it. I wanted to be able to effectively cut strings up into pieces, remove stupid white space from lines in files, remove certain characters from certain words for a certain effect, or even replace whole words if you want to. You can do what ever you want, within reason, with this. Function tests prove efficiency, albeit outdated efficiency! Function list Remember that this is the function list that you need to know, the full documentation is in the source code. pawn Code:
pawn Code:
pawn Code:
pawn Code:
pawn Code:
pawn Code:
pawn Code:
pawn Code:
pawn Code:
pawn Code:
pawn Code:
pawn Code:
pawn Code:
pawn Code:
Download: http://files.typefish.co.uk/sa-mp/strlib.inc -> No mirrors thanks. Fancy documentation: http://docs.typefish.co.uk/samp/pawn/strlib/ Any problems, post in the topic. See ya! Last edited by Westie; 21/12/2010 at 05:55 PM. |
|
|
|
|
|
#2 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Sep 2007
Location: USA
Posts: 598
Reputation: 22
|
Hmm, I will definitely make use of this in the future.
|
|
|
|
|
|
#3 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Feb 2008
Posts: 598
Reputation: 0
|
This is extremely useful, nice job!
|
|
|
|
|
|
#4 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Jul 2009
Posts: 879
Reputation: 57
|
Alright, I have modified strtr so that you are able to remove characters all together. Check the first post for details.
|
|
|
|
|
|
#5 |
|
Godfather
![]() ![]() ![]() ![]() ![]() ![]() Join Date: May 2009
Posts: 7,009
Reputation: 79
|
Good work.
|
|
|
|
|
|
#6 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Aug 2008
Posts: 457
Reputation: 2
|
Nice work Westie
|
|
|
|
|
|
#7 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Nov 2007
Location: Shenzhen,China
Posts: 679
Reputation: 1
|
Very useful, good job!
|
|
|
|
|
|
#8 |
|
Banned
![]() Join Date: Dec 2008
Posts: 614
Reputation: 0
|
cool
|
|
|
|
|
|
#9 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Jul 2009
Posts: 879
Reputation: 57
|
Updated, added functions for exploding strings! Kaboom.
|
|
|
|
|
|
#10 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Aug 2008
Posts: 457
Reputation: 2
|
Sorry I don't get what explode does, could you explain me? If it does what I think it does, I could use it :+
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Modification] | SAMP Gui - Simple modification of samp Interface (InGame) | LuxurioN™ | Everything and Nothing | 24 | 18/12/2010 06:10 PM |
| Payday Modification | SeQualX | Help Archive | 3 | 12/07/2010 03:31 PM |
| [FilterScript] [FS] Drift3r's Simple Vehicle Spawner *0.1b Update* | ray8995 | Filterscripts | 20 | 15/05/2010 01:22 PM |
| MOVED: SA-MP Server (EXE) modification - Do you like it? | Woet | Help Archive | 0 | 02/11/2009 06:43 AM |
| GTA modification compatibility with SA-MP | Lordician | General | 1 | 19/08/2009 07:03 PM |