Search found 464 matches
- Wed Oct 12, 2022 6:18 pm
- Forum: General Discussion
- Topic: Is it possible to find defined and unused variables?
- Replies: 18
- Views: 2209
Re: Is it possible to find defined and unused variables?
Unfortunately, this feature does not exist. However, you can double-click on a variable name, which will highlight the name and all other occurrences in the code. My IDE tool also searches for other occurrences of identifiers: SearchForUnusedIdentifiers (You can also find the other required include ...
- Mon Oct 03, 2022 11:42 am
- Forum: Applications - Feedback and Discussion
- Topic: RegEx engine module that builds NFA/DFA and uses it for matching
- Replies: 6
- Views: 1197
Re: RegEx engine module that builds NFA/DFA and uses it for matching
1.0.0-beta.2 released Download: Click Improved Unicode case unfolding table rewritten, resulting in 44% smaller executables. Character classes now produce much more compact NFAs, resulting in faster NFA matching, faster DFA creation, and less memory consumption. The more compact NFAs also benefit t...
- Mon Sep 12, 2022 11:13 am
- Forum: Applications - Feedback and Discussion
- Topic: RegEx engine module that builds NFA/DFA and uses it for matching
- Replies: 6
- Views: 1197
RegEx engine module that builds NFA/DFA and uses it for matching
RegEx engine module for PureBasic GitHub project page: Click Download: Click (see assets) I've been working on a "regex engine" module for PureBasic for a while. The engine compiles a regular expression into an NFA ( Nondeterministic finite automaton ), optionally also into a very fast DF...
- Sat Aug 20, 2022 12:33 pm
- Forum: Tricks 'n' Tips
- Topic: Upper and Lower Case Mapping for Unicode
- Replies: 32
- Views: 6723
Re: Upper and Lower Case Mapping for Unicode
Here is a link to another post with discussion and demonstration code to highlight how PureBasic uses USC-2: https://www.purebasic.fr/english/viewtopic.php?p=569391 The main point is that PureBasic uses USC-2 for string functions only. The strings used as parameters by other functions typically acc...
- Tue Aug 16, 2022 7:11 pm
- Forum: Tricks 'n' Tips
- Topic: Upper and Lower Case Mapping for Unicode
- Replies: 32
- Views: 6723
Re: Upper and Lower Case Mapping for Unicode
This seems to be right now. Thanks. Highest Unicode value is U+10FFFD. PureBasic officially uses UCS-2 for Unicode, which only supports characters from 0x0000 to 0xFFFF: https://www.purebasic.com/documentation/reference/unicode.html Although UCS-2 and UTF-16 are identical in this area and UTF-16 &q...
- Sun Aug 14, 2022 1:45 pm
- Forum: Tricks 'n' Tips
- Topic: Upper and Lower Case Mapping for Unicode
- Replies: 32
- Views: 6723
Re: Upper and Lower Case Mapping for Unicode
@idle: In your previous post, did you update the code as well? Because the only difference between your previous and last code is now the debug line at the end of the code, which was removed in the last code. Anyway, your previous and last code now shows the correct result: ; returns 'B5' and this i...
- Sat Aug 13, 2022 7:58 pm
- Forum: Tricks 'n' Tips
- Topic: Upper and Lower Case Mapping for Unicode
- Replies: 32
- Views: 6723
Re: Upper and Lower Case Mapping for Unicode
@idle: Sorry, but it's still not right. Result with your last code: ; returns 'B5' and this is wrong t = Chr($00B5) pUpCase(t) Debug Hex(Asc(t)) ; correct is '39C' Look at the output of my program above: code;upperCase;lowerCase;titleCase 00B5;039C;;039C Note: If there is no value for upperCase, low...
- Wed Jul 06, 2022 4:31 pm
- Forum: Bugs - IDE
- Topic: PB 6.00 x64 IDE Crash (Linux/Debian11)
- Replies: 6
- Views: 759
Re: PB 6.00 x64 IDE Crash (Linux/Debian11)
If you start the PB IDE from the terminal, error messages may appear in the terminal after a crash.
- Fri Jul 01, 2022 1:08 pm
- Forum: Windows
- Topic: Detect when a window is no longer busy?
- Replies: 5
- Views: 825
Re: Detect when a window is no longer busy?
Maybe WaitForInputIdle could be useful ;Autor: Sicro ;http://www.purebasic.fr/german/viewtopic.php?p=312984#p312984 EnableExplicit Define Program Procedure IsProgramReady(Program.i, MillisecondsToWait.i) Protected ProgramHandle.i, RetVal.i ProgramHandle = OpenProcess_(#PROCESS_QUERY_INFORMATION, #F...
- Sun Jun 26, 2022 8:11 pm
- Forum: Tricks 'n' Tips
- Topic: Upper and Lower Case Mapping for Unicode
- Replies: 32
- Views: 6723
Re: Upper and Lower Case Mapping for Unicode
code; lcase; ucase It would be nice to have a list to download Here: ; Case mapping table file: ; https://www.unicode.org/Public/UCD/latest/ucd/UnicodeData.txt ; UnicodeData file structure documentation: ; https://www.unicode.org/L2/L1999/UnicodeData.html ; by Sicro, 26.06.2022 EnableExplicit Defin...
- Sun Jun 26, 2022 11:14 am
- Forum: Tricks 'n' Tips
- Topic: Upper and Lower Case Mapping for Unicode
- Replies: 32
- Views: 6723
Re: Upper and Lower Case Mapping for Unicode
You are still using case folding instead of case mapping on some characters: ; returns '3BC' and this is wrong, because this is case folding Debug Hex(Asc(LCaseW(Chr($00B5)))) ; correct is 'B5' again (case mapping) ; returns 'B5' and this is wrong Debug Hex(Asc(UCaseW(Chr($00B5)))) ; correct is '39C...
- Sat Jun 11, 2022 12:58 pm
- Forum: Tricks 'n' Tips
- Topic: Upper and Lower Case Mapping for Unicode
- Replies: 32
- Views: 6723
Re: Upper and Lower Case Mapping for Unicode
Hello mk-soft, I see that you are applying case folding to do the conversion ( CaseFolding.txt ). This is wrong. Case folding is used to compare two strings, case-insensitively. Case folding must be applied to both strings before they are compared: string1$ = "HELLO" string2$ = "hello...
- Sat Jan 15, 2022 2:56 pm
- Forum: Bugs - IDE
- Topic: [Probably done] PB 6.00 Alpha 1 & Beta 2 - Tool for Replace FileViewer replaces all files, IDE crash in Beta 2
- Replies: 20
- Views: 7020
Re: PB 6.00 Alpha 1 & Beta 2 - Tool for Replace FileViewer replaces all files, IDE crash in Beta 2
Sorry, the IDE startup crash is my fault. :( :oops: You can see who was responsible for which changes in the Blame view: https://github.com/fantaisie-software/purebasic/blame/devel/PureBasicIDE/AddTools.pb#L230 I just created a pull request that should fix the bug: https://github.com/fantaisie-softw...
- Sun Jan 02, 2022 3:14 pm
- Forum: Off Topic
- Topic: Happy new year
- Replies: 17
- Views: 2070
Re: Happy new year
Happy New Year everyone!
- Sat Dec 25, 2021 2:59 pm
- Forum: Off Topic
- Topic: Merry christmas
- Replies: 21
- Views: 2911
Re: Merry christmas
Thanks!