Mercurial > urweb
comparison src/c/urweb.c @ 1485:4300592e6803
Basis.currentUrlHasQueryString
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Sun, 03 Jul 2011 16:21:04 -0400 |
parents | ebc30bb262d0 |
children | 7f8ddcf12b20 |
comparison
equal
deleted
inserted
replaced
1484:ae7547789c73 | 1485:4300592e6803 |
---|---|
3800 | 3800 |
3801 uw_Basis_bool uw_Basis_currentUrlHasPost(uw_context ctx) { | 3801 uw_Basis_bool uw_Basis_currentUrlHasPost(uw_context ctx) { |
3802 return ctx->isPost; | 3802 return ctx->isPost; |
3803 } | 3803 } |
3804 | 3804 |
3805 uw_Basis_bool uw_Basis_currentUrlHasQueryString(uw_context ctx) { | |
3806 return ctx->queryString != NULL && ctx->queryString[0] != 0; | |
3807 } | |
3808 | |
3805 void uw_setQueryString(uw_context ctx, uw_Basis_string s) { | 3809 void uw_setQueryString(uw_context ctx, uw_Basis_string s) { |
3806 ctx->queryString = s; | 3810 ctx->queryString = s; |
3807 } | 3811 } |
3808 | 3812 |
3809 uw_Basis_string uw_queryString(uw_context ctx) { | 3813 uw_Basis_string uw_queryString(uw_context ctx) { |