mirror of
				https://gitlab.gnome.org/GNOME/glib.git
				synced 2025-11-04 10:08:56 +01:00 
			
		
		
		
	Added GRegex boxed type. (#445065, Carlos Garnacho)
2007-06-15 Cody Russell <bratsche@gnome.org> * docs/reference/gobject/tmpl/gboxed.sgml: * docs/reference/gobject/gobject-sections.txt: * glib/gregex.c: * gobject/gboxed.[ch]: * gobject/gobject.symbols: Added GRegex boxed type. (#445065, Carlos Garnacho) svn path=/trunk/; revision=5566
This commit is contained in:
		
				
					committed by
					
						
						Cody Russell
					
				
			
			
				
	
			
			
			
						parent
						
							e674f5fe77
						
					
				
				
					commit
					49f802b83e
				
			@@ -1,3 +1,12 @@
 | 
				
			|||||||
 | 
					2007-06-15  Cody Russell  <bratsche@gnome.org>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						* docs/reference/gobject/tmpl/gboxed.sgml:
 | 
				
			||||||
 | 
						* docs/reference/gobject/gobject-sections.txt:
 | 
				
			||||||
 | 
						* glib/gregex.c:
 | 
				
			||||||
 | 
						* gobject/gboxed.[ch]:
 | 
				
			||||||
 | 
						* gobject/gobject.symbols: Added GRegex boxed type.
 | 
				
			||||||
 | 
						(#445065, Carlos Garnacho)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
2007-06-15  Sebastian Wilhelmi  <wilhelmi@google.com>
 | 
					2007-06-15  Sebastian Wilhelmi  <wilhelmi@google.com>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	* glib/gregex.c: Replaced & by & in <programlisting> to make
 | 
						* glib/gregex.c: Replaced & by & in <programlisting> to make
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -339,6 +339,7 @@ G_TYPE_HASH_TABLE
 | 
				
			|||||||
G_TYPE_DATE
 | 
					G_TYPE_DATE
 | 
				
			||||||
G_TYPE_GSTRING
 | 
					G_TYPE_GSTRING
 | 
				
			||||||
G_TYPE_STRV
 | 
					G_TYPE_STRV
 | 
				
			||||||
 | 
					G_TYPE_REGEX
 | 
				
			||||||
GStrv
 | 
					GStrv
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<SUBSECTION Standard>
 | 
					<SUBSECTION Standard>
 | 
				
			||||||
@@ -349,6 +350,7 @@ g_gstring_get_type
 | 
				
			|||||||
g_strv_get_type
 | 
					g_strv_get_type
 | 
				
			||||||
g_date_get_type
 | 
					g_date_get_type
 | 
				
			||||||
g_hash_table_get_type
 | 
					g_hash_table_get_type
 | 
				
			||||||
 | 
					g_regex_get_type
 | 
				
			||||||
</SECTION>
 | 
					</SECTION>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<SECTION>
 | 
					<SECTION>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -139,6 +139,15 @@ g_strfreev (writers);
 | 
				
			|||||||
@Since: 2.4
 | 
					@Since: 2.4
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					<!-- ##### MACRO G_TYPE_REGEX ##### -->
 | 
				
			||||||
 | 
					<para>
 | 
				
			||||||
 | 
					The #GType for a boxed type holding a #GRegex reference.
 | 
				
			||||||
 | 
					</para>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@Since: 2.14
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<!-- ##### TYPEDEF GStrv ##### -->
 | 
					<!-- ##### TYPEDEF GStrv ##### -->
 | 
				
			||||||
<para>
 | 
					<para>
 | 
				
			||||||
A C representable type name for #G_TYPE_STRV.
 | 
					A C representable type name for #G_TYPE_STRV.
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -410,8 +410,8 @@ g_match_info_get_match_count (const GMatchInfo *match_info)
 | 
				
			|||||||
 * GRegex supports the concept of partial matching by means of the
 | 
					 * GRegex supports the concept of partial matching by means of the
 | 
				
			||||||
 * #G_REGEX_MATCH_PARTIAL flag. When this is set the return code for
 | 
					 * #G_REGEX_MATCH_PARTIAL flag. When this is set the return code for
 | 
				
			||||||
 * g_regex_match() or g_regex_match_full() is, as usual, %TRUE
 | 
					 * g_regex_match() or g_regex_match_full() is, as usual, %TRUE
 | 
				
			||||||
 * for a complete match, %FALSE otherwise. But, when this functions
 | 
					 * for a complete match, %FALSE otherwise. But, when these functions
 | 
				
			||||||
 * returns %FALSE, you can check if the match was partial calling
 | 
					 * return %FALSE, you can check if the match was partial calling
 | 
				
			||||||
 * g_match_info_is_partial_match().
 | 
					 * g_match_info_is_partial_match().
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 * When using partial matching you cannot use g_match_info_fetch*().
 | 
					 * When using partial matching you cannot use g_match_info_fetch*().
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -241,6 +241,17 @@ g_hash_table_get_type (void)
 | 
				
			|||||||
  return type_id;
 | 
					  return type_id;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					GType
 | 
				
			||||||
 | 
					g_regex_get_type (void)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					  static GType type_id = 0;
 | 
				
			||||||
 | 
					  if (!type_id)
 | 
				
			||||||
 | 
					    type_id = g_boxed_type_register_static (g_intern_static_string ("GRegex"),
 | 
				
			||||||
 | 
										    (GBoxedCopyFunc) g_regex_ref,
 | 
				
			||||||
 | 
										    (GBoxedFreeFunc) g_regex_unref);
 | 
				
			||||||
 | 
					  return type_id;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void
 | 
					static void
 | 
				
			||||||
boxed_proxy_value_init (GValue *value)
 | 
					boxed_proxy_value_init (GValue *value)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -64,6 +64,7 @@ GType	g_boxed_type_register_static		(const gchar	*name,
 | 
				
			|||||||
#define	G_TYPE_STRV	        (g_strv_get_type ())
 | 
					#define	G_TYPE_STRV	        (g_strv_get_type ())
 | 
				
			||||||
#define	G_TYPE_GSTRING		(g_gstring_get_type ())
 | 
					#define	G_TYPE_GSTRING		(g_gstring_get_type ())
 | 
				
			||||||
#define	G_TYPE_HASH_TABLE	(g_hash_table_get_type ())
 | 
					#define	G_TYPE_HASH_TABLE	(g_hash_table_get_type ())
 | 
				
			||||||
 | 
					#define	G_TYPE_REGEX		(g_regex_get_type ())
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void    g_value_take_boxed      (GValue		*value,
 | 
					void    g_value_take_boxed      (GValue		*value,
 | 
				
			||||||
@@ -79,6 +80,7 @@ GType	g_date_get_type	        (void)	G_GNUC_CONST;
 | 
				
			|||||||
GType	g_strv_get_type	        (void)	G_GNUC_CONST;
 | 
					GType	g_strv_get_type	        (void)	G_GNUC_CONST;
 | 
				
			||||||
GType	g_gstring_get_type      (void)	G_GNUC_CONST;
 | 
					GType	g_gstring_get_type      (void)	G_GNUC_CONST;
 | 
				
			||||||
GType   g_hash_table_get_type   (void)  G_GNUC_CONST;
 | 
					GType   g_hash_table_get_type   (void)  G_GNUC_CONST;
 | 
				
			||||||
 | 
					GType   g_regex_get_type        (void)  G_GNUC_CONST;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
typedef gchar** GStrv;
 | 
					typedef gchar** GStrv;
 | 
				
			||||||
     
 | 
					     
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -20,6 +20,7 @@ g_date_get_type G_GNUC_CONST
 | 
				
			|||||||
g_gstring_get_type G_GNUC_CONST
 | 
					g_gstring_get_type G_GNUC_CONST
 | 
				
			||||||
g_strv_get_type G_GNUC_CONST
 | 
					g_strv_get_type G_GNUC_CONST
 | 
				
			||||||
g_hash_table_get_type G_GNUC_CONST
 | 
					g_hash_table_get_type G_GNUC_CONST
 | 
				
			||||||
 | 
					g_regex_get_type G_GNUC_CONST
 | 
				
			||||||
g_closure_get_type G_GNUC_CONST
 | 
					g_closure_get_type G_GNUC_CONST
 | 
				
			||||||
g_value_get_type G_GNUC_CONST
 | 
					g_value_get_type G_GNUC_CONST
 | 
				
			||||||
g_value_array_get_type G_GNUC_CONST
 | 
					g_value_array_get_type G_GNUC_CONST
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user