aboutsummaryrefslogtreecommitdiffhomepage
path: root/intern.h
blob: 7e0fdedac940f05117053c3e36adfa374e202ca2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/** \file intern.h

    Library for pooling common strings

*/

/**
   Return an identical copy of the specified string from a pool of unique strings. If the string was not in the pool, add a copy.

   \param The string to return an interned copy of
*/
const wchar_t *intern( const wchar_t *in );

/**
   Insert the specified string literal into the pool of unique
   strings. The string will not first be copied, and it will not be
   free'd on exit.
*/
const wchar_t *intern_static( const wchar_t *in );

/**
   Free all interned strings
*/
void intern_free_all();