<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
<!ENTITY version SYSTEM "version.xml">
]>
<refentry id="cutter-Assertion-Utilities-for-GString">
<refmeta>
<refentrytitle role="top_of_page" id="cutter-Assertion-Utilities-for-GString.top_of_page">Assertion Utilities for GString</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>
  CUTTER Library
</refmiscinfo>
</refmeta>
<refnamediv>
<refname>Assertion Utilities for GString</refname>
<refpurpose>Utilities to write assertions related
to <link linkend="GString"><type>GString</type></link> more easily.</refpurpose>
</refnamediv>

<refsynopsisdiv id="cutter-Assertion-Utilities-for-GString.synopsis" role="synopsis">
<title role="synopsis.title">Synopsis</title>

<synopsis><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="gcut-string-equal">gcut_string_equal</link>                   (<parameter>const <link linkend="GString"><type>GString</type></link> *string1</parameter>,
                                                         <parameter>const <link linkend="GString"><type>GString</type></link> *string2</parameter>);
<link linkend="gchar"><returnvalue>gchar</returnvalue></link> *             <link linkend="gcut-string-inspect">gcut_string_inspect</link>                 (<parameter>const <link linkend="GString"><type>GString</type></link> *string</parameter>);
</synopsis>
</refsynopsisdiv>

<refsect1 id="cutter-Assertion-Utilities-for-GString.description" role="desc">
<title role="desc.title">Description</title>
<para>
To write assertions, you need to check equality and show
expected and actual values.
</para>
<para>
The utilities help you to write assertions that are
related to <link linkend="GString"><type>GString</type></link>.
</para>
</refsect1>
<refsect1 id="cutter-Assertion-Utilities-for-GString.details" role="details">
<title role="details.title">Details</title>
<refsect2 id="gcut-string-equal" role="function" condition="since:1.1.5">
<title>gcut_string_equal ()</title>
<indexterm zone="gcut-string-equal" role="1.1.5"><primary>gcut_string_equal</primary></indexterm>
<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            gcut_string_equal                   (<parameter>const <link linkend="GString"><type>GString</type></link> *string1</parameter>,
                                                         <parameter>const <link linkend="GString"><type>GString</type></link> *string2</parameter>);</programlisting>
<para>
Compares two <link linkend="GString"><type>GString</type></link>, <parameter>string1</parameter> and <parameter>string2</parameter>.
</para><variablelist role="params">
<varlistentry><term><parameter>string1</parameter>&#160;:</term>
<listitem><simpara>a <link linkend="GString"><type>GString</type></link> to be compared.</simpara></listitem></varlistentry>
<varlistentry><term><parameter>string2</parameter>&#160;:</term>
<listitem><simpara>a <link linkend="GString"><type>GString</type></link> to be compared.</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara><link linkend="TRUE:CAPS"><literal>TRUE</literal></link> if both of <parameter>string1</parameter> and <parameter>string2</parameter> have the same
content, <link linkend="FALSE:CAPS"><literal>FALSE</literal></link> otherwise.</simpara></listitem></varlistentry>
</variablelist><para role="since">Since 1.1.5</para></refsect2>
<refsect2 id="gcut-string-inspect" role="function" condition="since:1.1.5">
<title>gcut_string_inspect ()</title>
<indexterm zone="gcut-string-inspect" role="1.1.5"><primary>gcut_string_inspect</primary></indexterm>
<programlisting><link linkend="gchar"><returnvalue>gchar</returnvalue></link> *             gcut_string_inspect                 (<parameter>const <link linkend="GString"><type>GString</type></link> *string</parameter>);</programlisting>
<para>
Inspects <parameter>string</parameter>. The returned string should be freed when
no longer needed.
</para><variablelist role="params">
<varlistentry><term><parameter>string</parameter>&#160;:</term>
<listitem><simpara>a <link linkend="GString"><type>GString</type></link> value.</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara>inspected <parameter>string</parameter> as a string.</simpara></listitem></varlistentry>
</variablelist><para role="since">Since 1.1.5</para></refsect2>

</refsect1>

</refentry>
