comparison dstep/coreservices/searchkit/SKSummary.d @ 11:07194b026fa4

Added bindings to a couple of frameworks, new license + some other things
author Jacob Carlborg <doob@me.com>
date Sat, 01 Aug 2009 15:03:28 +0200
parents
children
comparison
equal deleted inserted replaced
10:27e00625790b 11:07194b026fa4
1 /**
2 * Copyright: Copyright (c) 2009 Jacob Carlborg.
3 * Authors: Jacob Carlborg
4 * Version: Initial created: Jul 22, 2009
5 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0)
6 */
7 module dstep.coreservices.searchkit.SKSummary;
8
9 //import dstep.AvailabilityMacros;
10 import dstep.corefoundation.CFBase;
11 import dstep.corefoundation.CFString;
12
13 struct __SKSummary;
14
15 alias __SKSummary* SKSummaryRef;
16
17 extern (C)
18 {
19 uint SKSummaryGetTypeID ();
20 SKSummaryRef SKSummaryCreateWithString (CFStringRef inString);
21 int SKSummaryGetSentenceCount (SKSummaryRef summary);
22 int SKSummaryGetParagraphCount (SKSummaryRef summary);
23 CFStringRef SKSummaryCopySentenceAtIndex (SKSummaryRef summary, int i);
24 CFStringRef SKSummaryCopyParagraphAtIndex (SKSummaryRef summary, int i);
25 CFStringRef SKSummaryCopySentenceSummaryString (SKSummaryRef summary, int numSentences);
26 CFStringRef SKSummaryCopyParagraphSummaryString (SKSummaryRef summary, int numParagraphs);
27 int SKSummaryGetSentenceSummaryInfo (SKSummaryRef summary, int numSentencesInSummary, CFIndex* outRankOrderOfSentences, CFIndex* outSentenceIndexOfSentences, CFIndex* outParagraphIndexOfSentences);
28 int SKSummaryGetParagraphSummaryInfo (SKSummaryRef summary, int numParagraphsInSummary, CFIndex* outRankOrderOfParagraphs, CFIndex* outParagraphIndexOfParagraphs);
29 }