Skip to content

Commit

Permalink
Merge pull request #3061 from WalterBright/graphemeStride-doc
Browse files Browse the repository at this point in the history
improve doc for std.uni.graphemeStride()
  • Loading branch information
andralex committed Mar 18, 2015
2 parents 272cc8f + a85a324 commit eba6362
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion std/uni.d
Expand Up @@ -6421,10 +6421,18 @@ template genericDecodeGrapheme(bool getValue)
public: // Public API continues

/++
Returns the length of grapheme cluster starting at $(D index).
Computes the length of grapheme cluster starting at $(D index).
Both the resulting length and the $(D index) are measured
in $(S_LINK Code unit, code units).
Params:
C = type that is implicitly convertible to $(D dchars)
input = array of grapheme clusters
index = starting index into $(D input[])
Returns:
length of grapheme cluster
Example:
---
// ASCII as usual is 1 code unit, 1 code point etc.
Expand Down

0 comments on commit eba6362

Please sign in to comment.