Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Side by Side Diff: third_party/harfbuzz-ng/src/hb-shape.cc

Issue 1580513002: Roll HarfBuzz to 1.1.3 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: build fix Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/harfbuzz-ng/src/hb-shape.h ('k') | third_party/harfbuzz-ng/src/hb-shape-plan.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright © 2009 Red Hat, Inc. 2 * Copyright © 2009 Red Hat, Inc.
3 * Copyright © 2012 Google, Inc. 3 * Copyright © 2012 Google, Inc.
4 * 4 *
5 * This is part of HarfBuzz, a text shaping library. 5 * This is part of HarfBuzz, a text shaping library.
6 * 6 *
7 * Permission is hereby granted, without written agreement and without 7 * Permission is hereby granted, without written agreement and without
8 * license or royalty fees, to use, copy, modify, and distribute this 8 * license or royalty fees, to use, copy, modify, and distribute this
9 * software and its documentation for any purpose, provided that the 9 * software and its documentation for any purpose, provided that the
10 * above copyright notice and the following two paragraphs appear in 10 * above copyright notice and the following two paragraphs appear in
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 parse_feature_tag (pp, end, feature) && 203 parse_feature_tag (pp, end, feature) &&
204 parse_feature_indices (pp, end, feature) && 204 parse_feature_indices (pp, end, feature) &&
205 parse_feature_value_postfix (pp, end, feature) && 205 parse_feature_value_postfix (pp, end, feature) &&
206 parse_space (pp, end) && 206 parse_space (pp, end) &&
207 *pp == end; 207 *pp == end;
208 } 208 }
209 209
210 /** 210 /**
211 * hb_feature_from_string: 211 * hb_feature_from_string:
212 * @str: (array length=len) (element-type uint8_t): a string to parse 212 * @str: (array length=len) (element-type uint8_t): a string to parse
213 * @len: length of @str, or -1 if string is nul-terminated 213 * @len: length of @str, or -1 if string is %NULL terminated
214 * @feature: (out): the #hb_feature_t to initialize with the parsed values 214 * @feature: (out): the #hb_feature_t to initialize with the parsed values
215 * 215 *
216 * Parses a string into a #hb_feature_t. If @len is -1 then @str is 216 * Parses a string into a #hb_feature_t.
217 * %NULL-terminated.
218 * 217 *
219 * Return value: %TRUE if @str is successfully parsed, %FALSE otherwise 218 * TODO: document the syntax here.
219 *
220 * Return value:
221 * %true if @str is successfully parsed, %false otherwise.
220 * 222 *
221 * Since: 0.9.5 223 * Since: 0.9.5
222 **/ 224 **/
223 hb_bool_t 225 hb_bool_t
224 hb_feature_from_string (const char *str, int len, 226 hb_feature_from_string (const char *str, int len,
225 hb_feature_t *feature) 227 hb_feature_t *feature)
226 { 228 {
227 hb_feature_t feat; 229 hb_feature_t feat;
228 230
229 if (len < 0) 231 if (len < 0)
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 * Since: 0.9.2 399 * Since: 0.9.2
398 **/ 400 **/
399 void 401 void
400 hb_shape (hb_font_t *font, 402 hb_shape (hb_font_t *font,
401 hb_buffer_t *buffer, 403 hb_buffer_t *buffer,
402 const hb_feature_t *features, 404 const hb_feature_t *features,
403 unsigned int num_features) 405 unsigned int num_features)
404 { 406 {
405 hb_shape_full (font, buffer, features, num_features, NULL); 407 hb_shape_full (font, buffer, features, num_features, NULL);
406 } 408 }
OLDNEW
« no previous file with comments | « third_party/harfbuzz-ng/src/hb-shape.h ('k') | third_party/harfbuzz-ng/src/hb-shape-plan.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698