any-rule | 🦕 常用正则大全, 支持web / vscode / idea / Alfred Workflow多平台 | Regex library
kandi X-RAY | any-rule Summary
kandi X-RAY | any-rule Summary
常用正则大全, 支持web / vscode / idea / Alfred Workflow多平台
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of any-rule
any-rule Key Features
any-rule Examples and Code Snippets
Community Discussions
Trending Discussions on any-rule
QUESTION
Today I read this question Any rules about underscores in filenames in C/C++?, and I found it very interesting that the standard seems to not allow what is usually seen in many libraries (I also do it in my personal library this way):
For example, in opencv
we can see this:
// File: opencv/include/opencv2/opencv.hpp
ANSWER
Answered 2019-Feb-24 at 01:44Ah; the standard is really talking about the minimum character set of the filesystem supporting the C compiler.
Anything in the "" (or <> with some preprocessing first) is parsed as a string according to normal C rules and passed from there to the OS to do whatever it wants with it.
This leads to compiler errors on Windows when the programmer forgets to type \\
instead of '\' when writing a path into the header files. On modern Windows we can just use '/' and expect it to work but on older Windows or DOS it didn't.
For extra fun, try
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install any-rule
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page