Add a HHIR-level peephole optimization to reorder CheckTypes
[hiphop-php.git] / hphp / util / text-art.h
blob367bff120b5435518819c764ee65d929648cf6f7
1 /*
2 +----------------------------------------------------------------------+
3 | HipHop for PHP |
4 +----------------------------------------------------------------------+
5 | Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) |
6 +----------------------------------------------------------------------+
7 | This source file is subject to version 3.01 of the PHP license, |
8 | that is bundled with this package in the file LICENSE, and is |
9 | available through the world-wide-web at the following url: |
10 | http://www.php.net/license/3_01.txt |
11 | If you did not receive a copy of the PHP license and are unable to |
12 | obtain it through the world-wide-web, please send a note to |
13 | license@php.net so we can mail you a copy immediately. |
14 +----------------------------------------------------------------------+
17 #pragma once
19 namespace HPHP { namespace TextArt {
20 ///////////////////////////////////////////////////////////////////////////////
21 // comment only change
22 #define BOX_H get_box_drawing_char(LightHorizontal)
23 #define BOX_V get_box_drawing_char(LightVertical)
24 #define BOX_UL get_box_drawing_char(LightDownAndRight)
25 #define BOX_UR get_box_drawing_char(LightDownAndLeft)
26 #define BOX_VL get_box_drawing_char(LightVerticalAndRight)
27 #define BOX_VR get_box_drawing_char(LightVerticalAndLeft)
28 #define BOX_LL get_box_drawing_char(LightUpAndRight)
29 #define BOX_LR get_box_drawing_char(LightUpAndLeft)
31 enum BoxDrawing {
32 LightDownAndRight,
33 LightHorizontal,
34 LightDownAndLeft,
35 LightVerticalAndRight,
36 LightVertical,
37 LightVerticalAndLeft,
38 LightUpAndRight,
39 LightUpAndLeft,
42 const char *get_box_drawing_char(BoxDrawing name);
44 extern bool s_use_utf8;
46 ///////////////////////////////////////////////////////////////////////////////