rice class : ContainsComment(string) method

Description

Returns whether a named comment exists.

Syntax

riceInstance.ContainsComment(string commentName)

Arguments

ClassNameDescription
stringcommentNameComment name.

Return value

ClassDescription
boolWhether a named comment exists.

Sample code

1:

/**Sample**concat**-----------------------

2:

This is a

3:

sample.

4:

-----------------------------------------------*/

5:

rice rr;

6:

bool exists = rr.ContainsComment("Sample"); // exists is true.

Notes

If the comment name exists, returns true. Otherwise, returns false.

Links for reference

Copyright © Rice All rights reserved.