Rename member_NthContiguous -> _nthContiguous

Swift SVN r18172
This commit is contained in:
Nadav Rotem
2014-05-16 04:26:10 +00:00
parent b34abd4d8d
commit c1db20d178
2 changed files with 4 additions and 4 deletions

View File

@@ -255,7 +255,7 @@ struct _StringCore {
}
/// Get the Nth UTF16 Code Unit stored
func _NthContiguous(position: Int) -> UTF16.CodeUnit {
func _nthContiguous(position: Int) -> UTF16.CodeUnit {
let p = UnsafePointer<UInt8>(_pointerToNth(position).value)
// Always dereference two bytes, but when elements are 8 bits we
// multiply the high byte by 0.
@@ -269,7 +269,7 @@ struct _StringCore {
assert(position <= count)
if (_baseAddress != .null()) {
return _NthContiguous(position)
return _nthContiguous(position)
}
return _cocoaStringSubscript(target: self, position: position)

View File

@@ -121,8 +121,8 @@ extension String {
while true {
if AIdx < AEnd {
if BIdx < BEnd {
let e1 = self._base._NthContiguous(AIdx)
let e2 = other._base._NthContiguous(BIdx)
let e1 = self._base._nthContiguous(AIdx)
let e2 = other._base._nthContiguous(BIdx)
if _slowPath((e1 >= 0x80) | (e2 >= 0x80)) {
// Use slow unicode comparator if