flat assembler
Message board for the users of flat assembler.
Index
> Main > [fasmg] How to perform case-insensitive checks in CALM? |
Author |
|
Tomasz Grysztar 12 Jan 2021, 20:54
If you mean a comparison of two string values, then there is no such operation. You'd have to implement it manually, and also adapt for the encoding that you would expect to use - fasm[g] by itself is encoding-unaware, it just treats any characters outside of 7-bit ASCII range as raw.
Also, even case-insensitive check is not a truly reliable method to determine whether two paths point to the same file. This in general would require some kind of specialized interface with OS. As fasm[g]'s core is written in an OS-independent way, things like file caching used internally always treats paths that differ in any way as pointing to different files - not only some OS-es (like Linux/Unix) might have case-sensitive filesystems, it is even conceivable that fasm[g] may be ported to an OS that uses a completely different set of rules for path building. |
|||
12 Jan 2021, 20:54 |
|
Calanor 12 Jan 2021, 21:04
Hmm, I can see your point. OK, thanks for the info, Tomasz!
|
|||
12 Jan 2021, 21:04 |
|
Tomasz Grysztar 12 Jan 2021, 21:18
I'm off on a tangent, but I like to point to this guide as a demonstration what a can of worms path processing can be on Windows systems.
|
|||
12 Jan 2021, 21:18 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.