Search found 118 matches
- Thu Apr 04, 2024 3:29 pm
- Forum: Feature Requests and Wishlists
- Topic: Sorted list of compilers
- Replies: 4
- Views: 223
Re: Sorted list of compilers
Not really installing, but extracting the different .exe & copying the necessary items into the necessary folders and finally adding them via preferences E.g.: D:\Tools\PureBasic_x64\App This one contains the normal x64 folder structure: Catalogs Compilers PureLibraries Residents SDK SubSystems ...
- Wed Apr 03, 2024 5:02 pm
- Forum: Feature Requests and Wishlists
- Topic: Sorted list of compilers
- Replies: 4
- Views: 223
Sorted list of compilers
Would it be possible to sort compilers (e.g. first by version, then by bitness) in
Menu | Compiler | Compiler Options...
?
My list currently looks like this:
https://imgur.com/a/PzTOkcT
Menu | Compiler | Compiler Options...
?
My list currently looks like this:
https://imgur.com/a/PzTOkcT
- Wed Jan 31, 2024 6:42 am
- Forum: Coding Questions
- Topic: [pb6.10b4] Required Compiler can't be found
- Replies: 14
- Views: 748
Re: [pb6.10b4] Required Compiler can't be found
And you’ve checked the compiler settings of the current project you’re trying to compile?
- Mon Jan 15, 2024 1:47 pm
- Forum: Announcement
- Topic: PB-CTypeTable
- Replies: 10
- Views: 2285
Re: PB-CTypeTable
@Inner
Don't know if you care or not, but on the github page you have two occurrences of the word "veriable".
Maybe you want to correct them to "variable"
Don't know if you care or not, but on the github page you have two occurrences of the word "veriable".
Maybe you want to correct them to "variable"
- Sun Jan 14, 2024 9:10 pm
- Forum: The PureBasic Editor
- Topic: IDE-Tool Addition: activate Long Line Edge
- Replies: 5
- Views: 666
Re: IDE-Tool Addition: activate Long Line Edge
Very helpful, thanks for sharing!
- Sun Jan 14, 2024 9:09 pm
- Forum: The PureBasic Editor
- Topic: IDE-Tool for activating the ChangeHistory Feature in Scintilla
- Replies: 2
- Views: 505
Re: IDE-Tool for activating the ChangeHistory Feature in Scintilla
Very helpful, thanks (again) for sharing!
- Mon Jan 01, 2024 8:45 pm
- Forum: Coding Questions
- Topic: Extracting JSON arrays
- Replies: 4
- Views: 1028
Re: Extracting JSON arrays
I know this thread is a bit older but I was just in the need to pick specific elements in a json hierarchy so: Thank you @the.weavster for the example code to do this!
- Mon Jan 01, 2024 6:06 pm
- Forum: Coding Questions
- Topic: Get only trailing numbers from a string?
- Replies: 30
- Views: 1387
Re: Get only trailing numbers from a string?
@mk-soft
~23 ms for 100k rounds. Nice as well
Happy new year!
~23 ms for 100k rounds. Nice as well
Happy new year!
- Sun Dec 31, 2023 8:55 am
- Forum: Feature Requests and Wishlists
- Topic: Position number for ExamineRegularExpression()
- Replies: 5
- Views: 558
Re: Position number for ExamineRegularExpression()
Afaik not possible. That's internal data of the regex engine, you can't start / resume a regex search from a different position.
What you can do is: If you got the position from the first match, split the string at that pos (-1) and start the search on the second part of the split
What you can do is: If you got the position from the first match, split the string at that pos (-1) and start the search on the second part of the split
- Sun Dec 31, 2023 1:13 am
- Forum: Feature Requests and Wishlists
- Topic: Position number for ExamineRegularExpression()
- Replies: 5
- Views: 558
Re: Position number for ExamineRegularExpression()
There is
Just store these positions during the loop if you want to access them (later)?
Code: Select all
RegularExpressionMatchPosition()
- Sat Dec 30, 2023 8:22 pm
- Forum: Coding Questions
- Topic: Get only trailing numbers from a string?
- Replies: 30
- Views: 1387
Re: Get only trailing numbers from a string?
@SMaag
Thanks for adding this to the discussion
I do not plan to test it for speed but it adds some additional value (so I've added it to the string functions I use)
Thanks for adding this to the discussion
I do not plan to test it for speed but it adds some additional value (so I've added it to the string functions I use)
- Sat Dec 30, 2023 5:36 pm
- Forum: Coding Questions
- Topic: Get only trailing numbers from a string?
- Replies: 30
- Views: 1387
Re: Get only trailing numbers from a string?
Ok, thanks!
About 13ms for both variants (Create threadsafe executable / or not). No real difference
About 13ms for both variants (Create threadsafe executable / or not). No real difference
- Sat Dec 30, 2023 5:20 pm
- Forum: Coding Questions
- Topic: Get only trailing numbers from a string?
- Replies: 30
- Views: 1387
Re: Get only trailing numbers from a string?
@mk-soft Two questions to fully understand what you're doing there: Default *result = @result You're setting the pointer back to the start of the string here? Let's say the demo string is: 25468test123 Then "25468" is already in the result The current char is now 't', the pointer is moved ...
- Sat Dec 30, 2023 4:40 pm
- Forum: Coding Questions
- Topic: Get only trailing numbers from a string?
- Replies: 30
- Views: 1387
Re: Get only trailing numbers from a string?
@mk-soft
Wow!
At max 20ms, depending on the input string (and the size definition for the fixed string), down to 11 ms (e.g. if limited to 4)^^
Wow!
At max 20ms, depending on the input string (and the size definition for the fixed string), down to 11 ms (e.g. if limited to 4)^^
- Sat Dec 30, 2023 3:13 pm
- Forum: Coding Questions
- Topic: Get only trailing numbers from a string?
- Replies: 30
- Views: 1387
Re: Get only trailing numbers from a string?
@Marc56us The slightly optimised version takes about 75ms (again with 100k loops) Your last posted version takes about 85ms Procedure.s GetTrailingNumbersFromString6(string.s) Protected.i i, num Protected.s result For i = Len(string) To 1 Step -1 num = Asc(Mid(string, i, 1)) If num >= 48 And num <= ...