stdlib: underscore-prefix toStringReadOnly, fix 80-columns violations

Swift SVN r21064
This commit is contained in:
Dmitri Hrybenko
2014-08-06 09:02:52 +00:00
parent c75fb72c93
commit 06ac06667a
2 changed files with 15 additions and 10 deletions

View File

@@ -24,9 +24,14 @@
% Types.append('Character')
% Types.append('UnicodeScalar')
% for Type in Types:
extension String : StringInterpolationConvertible {
public static func convertFromStringInterpolationSegment(expr: ${Type}) -> String { return toStringReadOnly(expr) }
% for Type in Types:
public static func convertFromStringInterpolationSegment(
expr: ${Type}
) -> String {
return _toStringReadOnly(expr)
}
% end
}
// ${'Local Variables'}: