Exemplo n.º 1
0
/*
	Retrieve the text associated with a particular chunk within a
	completion string.

	Parameter completion_string the completion string to query.

	Parameter chunk_number the 0-based index of the chunk in the completion string.

	Returns the text associated with the chunk at index chunk_number.
*/
func (cs CompletionString) ChunkText(chunkNumber uint32) string {
	o := cxstring{C.clang_getCompletionChunkText(cs.c, C.uint(chunkNumber))}
	defer o.Dispose()

	return o.String()
}
Exemplo n.º 2
0
/**
 * \brief Retrieve the text associated with a particular chunk within a
 * completion string.
 *
 * \param completion_string the completion string to query.
 *
 * \param chunk_number the 0-based index of the chunk in the completion string.
 *
 * \returns the text associated with the chunk at index \c chunk_number.
 */
func (cc CompletionChunk) Text() string {
	cx := cxstring{C.clang_getCompletionChunkText(cc.cs, cc.number)}
	defer cx.Dispose()
	return cx.String()
}