macro.Constant

Constant

package haxe-macro

import haxe.macro.Expr

Available on all platforms

Represents a constant.

See:

Values

CInt(v:String)

Represents an integer literal.

CFloat(f:String)

Represents a float literal.

CString(s:String)

Represents a string literal.

CIdent(s:String)

Represents an indentifier.

CRegexp(r:String, opt:String)

Represents a regular expression literal.

Example: ~/haxe/i The first argument haxe is a string with regular expression pattern. The second argument i is a string with regular expression flags.

See:

© 2005–2016 Haxe Foundation
Licensed under a MIT license.
http://api.haxe.org/haxe/macro/Constant.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部