diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2015-10-07 17:03:12 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2015-12-11 12:11:31 +0100 |
commit | e3275837d5738c5092b2e452829919e31ad553e5 (patch) | |
tree | 0b1ffed536e6887236c4e50cbb808808bbe2684e /platform/ios/Classes/MuPageViewNormal.m | |
parent | c22e6a6dc2bf6acbac955bd5fbdd896329dfd725 (diff) | |
download | mupdf-e3275837d5738c5092b2e452829919e31ad553e5.tar.xz |
Rename structured text structs and functions to 'stext'.
Less risk of confusion with the text type used in the device interface.
Diffstat (limited to 'platform/ios/Classes/MuPageViewNormal.m')
-rw-r--r-- | platform/ios/Classes/MuPageViewNormal.m | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/platform/ios/Classes/MuPageViewNormal.m b/platform/ios/Classes/MuPageViewNormal.m index 429785fe..f82c3413 100644 --- a/platform/ios/Classes/MuPageViewNormal.m +++ b/platform/ios/Classes/MuPageViewNormal.m @@ -56,8 +56,8 @@ static NSArray *enumerateAnnotations(fz_document *doc, fz_page *page) static NSArray *enumerateWords(fz_document *doc, fz_page *page) { - fz_text_sheet *sheet = NULL; - fz_text_page *text = NULL; + fz_stext_sheet *sheet = NULL; + fz_stext_page *text = NULL; fz_device *dev = NULL; NSMutableArray *lns = [NSMutableArray array]; NSMutableArray *wds; @@ -74,16 +74,16 @@ static NSArray *enumerateWords(fz_document *doc, fz_page *page) { int b, l, c; - sheet = fz_new_text_sheet(ctx); - text = fz_new_text_page(ctx); - dev = fz_new_text_device(ctx, sheet, text); + sheet = fz_new_stext_sheet(ctx); + text = fz_new_stext_page(ctx); + dev = fz_new_stext_device(ctx, sheet, text); fz_run_page(ctx, page, dev, &fz_identity, NULL); fz_drop_device(ctx, dev); dev = NULL; for (b = 0; b < text->len; b++) { - fz_text_block *block; + fz_stext_block *block; if (text->blocks[b].type != FZ_PAGE_BLOCK_TEXT) continue; @@ -92,8 +92,8 @@ static NSArray *enumerateWords(fz_document *doc, fz_page *page) for (l = 0; l < block->len; l++) { - fz_text_line *line = &block->lines[l]; - fz_text_span *span; + fz_stext_line *line = &block->lines[l]; + fz_stext_span *span; wds = [NSMutableArray array]; if (!wds) @@ -107,11 +107,11 @@ static NSArray *enumerateWords(fz_document *doc, fz_page *page) { for (c = 0; c < span->len; c++) { - fz_text_char *ch = &span->text[c]; + fz_stext_char *ch = &span->text[c]; fz_rect bbox; CGRect rect; - fz_text_char_bbox(ctx, &bbox, span, c); + fz_stext_char_bbox(ctx, &bbox, span, c); rect = CGRectMake(bbox.x0, bbox.y0, bbox.x1 - bbox.x0, bbox.y1 - bbox.y0); if (ch->c != ' ') @@ -138,8 +138,8 @@ static NSArray *enumerateWords(fz_document *doc, fz_page *page) } fz_always(ctx); { - fz_drop_text_page(ctx, text); - fz_drop_text_sheet(ctx, sheet); + fz_drop_stext_page(ctx, text); + fz_drop_stext_sheet(ctx, sheet); fz_drop_device(ctx, dev); } fz_catch(ctx) |