~ubuntu-branches/ubuntu/maverick/mysql-5.1/maverick-proposed

« back to all changes in this revision

Viewing changes to storage/innobase/include/ut0mem.h

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 14:16:05 UTC
  • mto: This revision was merged to the branch mainline in revision 20.
  • Revision ID: package-import@ubuntu.com-20120222141605-nxlu9yzc6attylc2
Tags: upstream-5.1.61
ImportĀ upstreamĀ versionĀ 5.1.61

Show diffs side-by-side

added added

removed removed

Lines of Context:
145
145
        ulint           size);  /* in: size of destination buffer */
146
146
 
147
147
/**************************************************************************
148
 
Compute strlen(ut_strcpyq(str, q)). */
149
 
UNIV_INLINE
150
 
ulint
151
 
ut_strlenq(
152
 
/*=======*/
153
 
                                /* out: length of the string when quoted */
154
 
        const char*     str,    /* in: null-terminated string */
155
 
        char            q);     /* in: the quote character */
156
 
 
157
 
/**************************************************************************
158
 
Make a quoted copy of a NUL-terminated string.  Leading and trailing
159
 
quotes will not be included; only embedded quotes will be escaped.
160
 
See also ut_strlenq() and ut_memcpyq(). */
161
 
 
162
 
char*
163
 
ut_strcpyq(
164
 
/*=======*/
165
 
                                /* out: pointer to end of dest */
166
 
        char*           dest,   /* in: output buffer */
167
 
        char            q,      /* in: the quote character */
168
 
        const char*     src);   /* in: null-terminated string */
169
 
 
170
 
/**************************************************************************
171
 
Make a quoted copy of a fixed-length string.  Leading and trailing
172
 
quotes will not be included; only embedded quotes will be escaped.
173
 
See also ut_strlenq() and ut_strcpyq(). */
174
 
 
175
 
char*
176
 
ut_memcpyq(
177
 
/*=======*/
178
 
                                /* out: pointer to end of dest */
179
 
        char*           dest,   /* in: output buffer */
180
 
        char            q,      /* in: the quote character */
181
 
        const char*     src,    /* in: string to be quoted */
182
 
        ulint           len);   /* in: length of src */
183
 
 
184
 
/**************************************************************************
185
148
Return the number of times s2 occurs in s1. Overlapping instances of s2
186
149
are only counted once. */
187
150