57
57
58
58
#![ forbid( unsafe_code) ]
59
59
60
- #![ cfg_attr( feature="flame_it" , feature( plugin, custom_attribute) ) ]
61
- #![ cfg_attr( feature="flame_it" , plugin( flamer) ) ]
62
-
63
60
pub mod deprecated;
64
61
pub mod format_chars;
65
62
pub mod level;
@@ -119,7 +116,7 @@ impl<'text> InitialInfo<'text> {
119
116
/// Also sets the class for each First Strong Isolate initiator (FSI) to LRI or RLI if a strong
120
117
/// character is found before the matching PDI. If no strong character is found, the class will
121
118
/// remain FSI, and it's up to later stages to treat these as LRI when needed.
122
- #[ cfg_attr( feature = "flame_it" , flame) ]
119
+ #[ cfg_attr( feature = "flame_it" , flamer :: flame) ]
123
120
pub fn new ( text : & str , default_para_level : Option < Level > ) -> InitialInfo < ' _ > {
124
121
let mut original_classes = Vec :: with_capacity ( text. len ( ) ) ;
125
122
@@ -245,7 +242,7 @@ impl<'text> BidiInfo<'text> {
245
242
/// text that is entirely LTR. See the `nsBidi` class from Gecko for comparison.
246
243
///
247
244
/// TODO: Support auto-RTL base direction
248
- #[ cfg_attr( feature = "flame_it" , flame) ]
245
+ #[ cfg_attr( feature = "flame_it" , flamer :: flame) ]
249
246
pub fn new ( text : & str , default_para_level : Option < Level > ) -> BidiInfo < ' _ > {
250
247
let InitialInfo {
251
248
original_classes,
@@ -293,15 +290,15 @@ impl<'text> BidiInfo<'text> {
293
290
294
291
/// Re-order a line based on resolved levels and return only the embedding levels, one `Level`
295
292
/// per *byte*.
296
- #[ cfg_attr( feature = "flame_it" , flame) ]
293
+ #[ cfg_attr( feature = "flame_it" , flamer :: flame) ]
297
294
pub fn reordered_levels ( & self , para : & ParagraphInfo , line : Range < usize > ) -> Vec < Level > {
298
295
let ( levels, _) = self . visual_runs ( para, line) ;
299
296
levels
300
297
}
301
298
302
299
/// Re-order a line based on resolved levels and return only the embedding levels, one `Level`
303
300
/// per *character*.
304
- #[ cfg_attr( feature = "flame_it" , flame) ]
301
+ #[ cfg_attr( feature = "flame_it" , flamer :: flame) ]
305
302
pub fn reordered_levels_per_char (
306
303
& self ,
307
304
para : & ParagraphInfo ,
@@ -313,7 +310,7 @@ impl<'text> BidiInfo<'text> {
313
310
314
311
315
312
/// Re-order a line based on resolved levels and return the line in display order.
316
- #[ cfg_attr( feature = "flame_it" , flame) ]
313
+ #[ cfg_attr( feature = "flame_it" , flamer :: flame) ]
317
314
pub fn reorder_line ( & self , para : & ParagraphInfo , line : Range < usize > ) -> Cow < ' text , str > {
318
315
let ( levels, runs) = self . visual_runs ( para, line. clone ( ) ) ;
319
316
@@ -338,7 +335,7 @@ impl<'text> BidiInfo<'text> {
338
335
/// `line` is a range of bytes indices within `levels`.
339
336
///
340
337
/// <http://www.unicode.org/reports/tr9/#Reordering_Resolved_Levels>
341
- #[ cfg_attr( feature = "flame_it" , flame) ]
338
+ #[ cfg_attr( feature = "flame_it" , flamer :: flame) ]
342
339
pub fn visual_runs (
343
340
& self ,
344
341
para : & ParagraphInfo ,
@@ -463,7 +460,7 @@ impl<'text> BidiInfo<'text> {
463
460
///
464
461
/// The levels assigned to these characters are not specified by the algorithm. This function
465
462
/// assigns each one the level of the previous character, to avoid breaking level runs.
466
- #[ cfg_attr( feature = "flame_it" , flame) ]
463
+ #[ cfg_attr( feature = "flame_it" , flamer :: flame) ]
467
464
fn assign_levels_to_removed_chars ( para_level : Level , classes : & [ BidiClass ] , levels : & mut [ Level ] ) {
468
465
for i in 0 ..levels. len ( ) {
469
466
if prepare:: removed_by_x9 ( classes[ i] ) {
0 commit comments