[stdlib] Rename 'countElements' => 'count'

The name was not only long and unwieldy, but inconsistent with our
conscious decision to avoid the use of "elements" in APIs as mostly
redundant.

Swift SVN r22408
This commit is contained in:
Dave Abrahams
2014-09-30 22:00:26 +00:00
parent b05f1ad720
commit 156020de19
34 changed files with 106 additions and 104 deletions

View File

@@ -133,7 +133,7 @@ func checkGraphemeClusterSegmentation(
var actualBoundaries: [Int] = [ 0 ]
var unicodeScalarCount = 0
for c in subject {
let currentClusterSize = countElements(String(c).unicodeScalars)
let currentClusterSize = count(String(c).unicodeScalars)
unicodeScalarCount += currentClusterSize
actualBoundaries += [ unicodeScalarCount ]
}