Add "single extended grapheme cluster" literals (SEGCL) -- a subset of

double-quoted string literals that contain a single extended grapheme cluster

SEGCL by default infer type String, but you can ask to infer Character
for them.

Single quoted literals continue to infer Character.

Actual extended grapheme cluster segmentation is not implemented yet,
<rdar://problem/16755123> Implement extended grapheme cluster
segmentation in libSwiftBasic

This is part of
<rdar://problem/16363872> Remove single quoted characters

Swift SVN r17034
This commit is contained in:
Dmitri Hrybenko
2014-04-29 14:08:16 +00:00
parent b337d35e43
commit 669f633070
18 changed files with 218 additions and 61 deletions

View File

@@ -40,7 +40,7 @@ const uint16_t VERSION_MAJOR = 0;
/// Serialized module format minor version number.
///
/// When the format changes IN ANY WAY, this number should be incremented.
const uint16_t VERSION_MINOR = 86;
const uint16_t VERSION_MINOR = 88;
using DeclID = Fixnum<31>;
using DeclIDField = BCFixed<31>;
@@ -1091,12 +1091,14 @@ namespace index_block {
ArrayLiteralConvertible,
CharacterLiteralConvertible,
DictionaryLiteralConvertible,
ExtendedGraphemeClusterLiteralConvertible,
FloatLiteralConvertible,
IntegerLiteralConvertible,
StringInterpolationConvertible,
StringLiteralConvertible,
BuiltinCharacterLiteralConvertible,
BuiltinExtendedGraphemeClusterLiteralConvertible,
BuiltinFloatLiteralConvertible,
BuiltinIntegerLiteralConvertible,
BuiltinStringLiteralConvertible,