umd/fieldstack.js
/**
 * Convert to native JavaScript string lengths to determine ranges.
 */
Convert to native JavaScript string lengths to determine ranges.
Convert to native JavaScript string lengths to determine ranges .
function decodeInlineStyleRanges(text, ranges) {
  var styles = Array(text.length).fill(EMPTY_SET$3);
  if (ranges) {
    ranges.forEach(function ( range) {
      var cursor = substr$2(text, 0, range.offset).length;
      var end = cursor + substr$2(text, range.offset, range.length).length;
      while (cursor < end) {
        styles[cursor] = styles[cursor].add(range.style);
        cursor++;
      }
    });
  }
  return styles;
}
function decodeInlineStyleRanges ( text , ranges ) { var styles = Array ( text . length ) . fill ( EMPTY_SET$3 ) ; if ( ranges ) { ranges . forEach ( function ( range ) { var cursor = substr$2 ( text , 0 , range . offset ) . length ; var end = cursor + substr$2 ( text , range . offset , range . length ) . length ; while ( cursor < end ) { styles [ cursor ] = styles [ cursor ] . add ( range . style ) ; cursor ++ ; } } ) ; } return styles ; }
Convert to native JavaScript string lengths to determine ranges.
Convert to native JavaScript string lengths to determine ranges .
/*object*/