We don't have explicit support for api notes in SwiftPM.
We discussed it, and it something which probably makes sense, but no one has
worked on a design or implementation yet.
- Daniel
> On May 12, 2017, at 11:32 AM, Michael Gottesman via swift-users
> wrote:
>
>
To continue this thread: I managed to annotate a bunch of C APIs with
modulename.apinotes. This works with Xcode (to a certain degree - pointers,
enums, and especially OpaquePointers are tricky). I’m now trying to build my
package with SwiftPM and it doesn’t seem to recognise the apinotes file.
Ah, thanks!
On Fri, May 12, 2017 at 11:45 AM, Martin R wrote:
> The enumerateSubstrings method of (NS)String has a
> .byComposedCharacterSequences option which causes Emoji sequences like
> "" to be treated as a single unit:
>
> func f(_ s: String) -> [String] {
The enumerateSubstrings method of (NS)String has a
.byComposedCharacterSequences option which causes Emoji sequences like
"" to be treated as a single unit:
func f(_ s: String) -> [String] {
var a: [String] = []
s.enumerateSubstrings(in: s.startIndex..
FWIW: I can conclude that the third example does not render correctly in
Gmail ...
On Fri, May 12, 2017 at 10:43 AM, Jens Persson wrote:
> I want a function f such that:
>
> f("abc") == ["a", "b", "c"]
>
> f("café") == ["c", "a", "f", "é"]
>
> f("♀️") == ["",
I want a function f such that:
f("abc") == ["a", "b", "c"]
f("café") == ["c", "a", "f", "é"]
f("♀️") == ["", "♀️"]
I'm not sure if the last example renders correctly by mail for everyone but
the input String contains these _two_ "natural/visual characters":
(1) A family