Line data Source code
1 : // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
2 : // for details. All rights reserved. Use of this source code is governed by a
3 : // BSD-style license that can be found in the LICENSE file.
4 :
5 : export 'src/generated.dart';
6 :
7 : import 'src/generated.dart';
8 :
9 : /// Returns [glyph] if Unicode glyph are allowed, and [alternative] if they
10 : /// aren't.
11 : String glyphOrAscii(String glyph, String alternative) =>
12 0 : ascii ? alternative : glyph;
|