English 中文(简体)
A. 广泛特征的使用 具有部族特性的格特人“具有广泛特性的极端特性经常被忽视”
原标题:Using Wide Character Constants with clang Gets "extraneous characters in wide character constant ignored" Error

最近,我决定从gcc和I'm转向部族,为我使用大自然不变的特性发出以下警告: 具有广泛特征的极端特性,始终被忽视。” 这里是发出警告的法典:

wstring& line;
…
for (wstring::iterator ch = line.begin(); ch != line.end(); ++ch)
    switch (*ch) {
        case L │ : *ch = L | ; break;
        case L ﹤ : *ch = L < ; break;
        case L ﹥ : *ch = L > ; break;
        case L ﹙ : *ch = L ( ; break;
        case L ﹚ : *ch = L ) ; break;
        default: break;
    }

这里,案件条件的性质都是高超的密码特征,因此被视为部族长官的多比特特征,显然(来源代码为UTF-8。)

我的问题是警告信息背后的含义。 这正是被忽视的。 此外,鉴于这一警告,我的方案是否按计划进行?

gcc 没有对该法提出任何警告,所有工作都如药剂。

最佳回答

该方案的核心是对来文方档案的解释。 你们知道,它用UTF-8编码。 因此,第6条斜线应改为“统法协会编码”。 但是部族如何知道? 它看着6个tes子,并假设有8个bit。 因此,见<代码>L xyz (确切性质取决于假定的8个轨道特性)。 Corng告诉你,它正在将<代码>L xyz 解释为L x ,忽视 y z。 这极不可能按预期奏效。

问题回答

暂无回答




相关问题
Undefined reference

I m getting this linker error. I know a way around it, but it s bugging me because another part of the project s linking fine and it s designed almost identically. First, I have namespace LCD. Then I ...

C++ Equivalent of Tidy

Is there an equivalent to tidy for HTML code for C++? I have searched on the internet, but I find nothing but C++ wrappers for tidy, etc... I think the keyword tidy is what has me hung up. I am ...

Template Classes in C++ ... a required skill set?

I m new to C++ and am wondering how much time I should invest in learning how to implement template classes. Are they widely used in industry, or is this something I should move through quickly?

Print possible strings created from a Number

Given a 10 digit Telephone Number, we have to print all possible strings created from that. The mapping of the numbers is the one as exactly on a phone s keypad. i.e. for 1,0-> No Letter for 2->...

typedef ing STL wstring

Why is it when i do the following i get errors when relating to with wchar_t? namespace Foo { typedef std::wstring String; } Now i declare all my strings as Foo::String through out the program, ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

Window iconification status via Xlib

Is it possible to check with the means of pure X11/Xlib only whether the given window is iconified/minimized, and, if it is, how?